3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php class Person { public $name = 'Erika'; public $job = 'Developer Advocate'; } $person = new Person(); $property = [ 'first' => 'name', 'second' => 'info' ]; echo "\nMy name is " . $person->$property['first'] . "\n\n";

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.0070.05320.30
7.0.00.0070.07320.19
5.6.160.0100.08020.50
5.6.150.0100.03718.15
5.6.140.0130.07718.14
5.6.130.0030.04718.27
5.6.120.0030.04320.94
5.6.110.0100.08021.02
5.6.100.0100.08021.04
5.6.90.0100.04721.11
5.6.80.0070.07720.37
5.5.300.0100.07717.95
5.5.290.0000.04317.95
5.5.280.0070.03720.64
5.5.270.0130.07320.64
5.5.260.0100.08020.96
5.5.250.0030.04020.77
5.5.240.0170.07320.28

preferences:
141.74 ms | 1386 KiB | 7 Q