3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php class Test{ public $var=null; function __construct($input) { $var = $input; } } $a = new Test(4); echo $a->$var; ?>

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.20.0170.04020.12
7.0.10.0030.04720.24
7.0.00.0070.07720.11
5.6.170.0170.03720.50
5.6.160.0070.05320.42
5.6.150.0070.08018.14
5.6.140.0200.06718.15
5.6.130.0100.09318.14
5.6.120.0100.07321.12
5.6.110.0070.06721.00
5.6.100.0070.08021.10
5.6.90.0070.05720.99
5.6.80.0070.08020.50
5.5.310.0230.03720.32
5.5.300.0030.05317.95
5.5.290.0070.03717.98
5.5.280.0070.04020.68
5.5.270.0070.08720.82
5.5.260.0030.05720.86
5.5.250.0130.07320.75
5.5.240.0030.06020.27

preferences:
147.76 ms | 1394 KiB | 7 Q