3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SetterTester { public function __set($name, $value) { echo 'Setter is used', PHP_EOL, PHP_EOL; } } // echo "Test normal version", PHP_EOL; // $test = new SetterTester(); // $test->property = "Some value"; echo "Test array version", PHP_EOL; $test = new SetterTester(); {$test->property}["index"] = "Some value";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.10.0030.07720.08
7.0.00.0130.06320.23
5.6.160.0030.07320.52
5.6.150.0000.04718.18
5.6.140.0170.06718.28
5.6.130.0030.08318.18
5.6.120.0170.07720.94
5.6.110.0030.09020.89
5.6.100.0070.08320.96
5.6.90.0000.09320.93
5.6.80.0130.07720.39
5.5.300.0100.08317.91
5.5.290.0000.04717.92
5.5.280.0130.07320.69
5.5.270.0100.08020.65
5.5.260.0070.08020.84
5.5.250.0070.08020.62
5.5.240.0070.08320.16

preferences:
143.61 ms | 1394 KiB | 7 Q