3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $x = 'a' . 'b'; // ok - can be calculated at compile-time public $y = $_POST['foo']; // not ok - only calculable at runtime. }

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.00.0070.08320.25
5.6.160.0130.03320.55
5.6.150.0100.03718.14
5.6.140.0070.05018.28
5.6.130.0030.05018.27
5.6.120.0200.03021.05
5.6.110.0070.07021.02
5.6.100.0070.05021.13
5.6.90.0100.07720.96
5.6.80.0170.07020.52
5.5.300.0070.07017.97
5.5.290.0130.07317.95
5.5.280.0130.03320.80
5.5.270.0070.05320.75
5.5.260.0070.04320.86
5.5.250.0100.08720.49
5.5.240.0230.07720.25

preferences:
143.04 ms | 1394 KiB | 7 Q