3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const COUNTRY_TEST = 'ABC'; public function Test($var = 'test') { ${COUNTRY_."$var"} echo self::COUNTRY_$var; } } $test = new Test();

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)
5.6.140.0070.08318.15
5.6.130.0070.08018.16
5.6.120.0100.07020.91
5.6.110.0070.08720.96
5.6.100.0070.07021.13
5.6.90.0130.07021.13
5.6.80.0230.03720.50
5.5.300.0070.05018.08
5.5.290.0070.07318.06
5.5.280.0130.08320.78
5.5.270.0100.06720.96
5.5.260.0130.07720.82
5.5.250.0070.09020.59
5.5.240.0070.05720.26
5.4.450.0170.05019.61
5.4.440.0100.05719.16
5.4.430.0130.05319.58
5.4.420.0070.06019.20
5.4.410.0130.05319.57
5.4.400.0100.05718.88
5.4.390.0100.05718.87
5.4.380.0130.05719.17
5.4.370.0030.06019.15
5.4.360.0200.04319.23
5.4.350.0170.05319.13
5.4.340.0130.05319.26
5.4.320.0230.04719.23
5.4.310.0170.05319.15
5.4.300.0200.05719.30
5.4.290.0100.05719.29
5.4.280.0100.08019.38
5.4.270.0170.04319.16
5.4.260.0230.04319.15
5.4.250.0030.06319.05
5.4.240.0070.05719.00
5.4.230.0070.05719.14
5.4.220.0130.05319.14
5.4.210.0200.04719.25
5.4.200.0170.05019.28
5.4.190.0170.05019.07
5.4.180.0170.05019.25
5.4.170.0230.04718.83
5.4.160.0130.05719.13
5.4.150.0170.05019.12
5.4.140.0070.05716.56
5.4.130.0100.05016.43
5.4.120.0130.04716.51
5.4.110.0130.05016.60
5.4.100.0100.05016.45
5.4.90.0100.06016.57
5.4.80.0170.04316.62
5.4.70.0200.06016.34
5.4.60.0000.07316.34
5.4.50.0000.03316.38
5.4.40.0230.05316.22
5.4.30.0270.07016.35
5.4.20.0300.05716.25

preferences:
144.48 ms | 1394 KiB | 7 Q