Logo BrocksiNet

BrocksiNet

Try to clean the web

Testing php code for different php versions online

Sometimes you have to test your code on different php versions.

There are multiple solutions to do this:

  • You can setup different php versions on your local (maybe virtual) machine and test every version one by one.
  • You can run a code analyser in your ide to find problems.

And you can test easily some (critical) parts of your application in a nice online editor like:

3v4l.org

The fun stuff is that you see exactly what every version will output or what kind of errors are thrown. Also hhvm is supported.

Here is an screen from the website about a json_decode example (link below the image) 

view json_decode example online

Released - 15.09.2017

Comments


About the author

Bild Bjoern
Björn MeyerSoftware Engineer
Björn is interested in the details of web technologies. He started with Joomla, Drupal, Typo3, vBulletin, Fireworks and Photoshop. Today his focus is on PHP for example with Magento 2, Shopware 6 and Symfony. He also likes JavaScript with Angular, React, VueJs and TypeScript. In his free time, he seeks constant balance with swimming, running and yoga.