3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $_cpt ; public function compt() { $_cpt ++; return $_cpt; } } $insta1 = new test(); // Un $insta2 = new test(); // 2 echo 'cpt : '.$;

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.4.260.0070.05318.77
5.4.250.0000.06018.76
5.4.240.0070.05018.95
5.4.230.0070.05318.65
5.4.220.0170.05718.99
5.4.210.0100.05318.79
5.4.200.0070.05319.00
5.4.190.0200.05718.94
5.4.180.0130.04319.09
5.4.170.0030.05718.76
5.4.160.0130.04318.73
5.4.150.0200.06018.79
5.4.140.0200.04716.38
5.4.130.0100.04316.57
5.4.120.0100.05016.39
5.4.110.0130.04316.33
5.4.100.0100.05016.52
5.4.90.0200.03716.55
5.4.80.0070.05716.31
5.4.70.0100.04716.54
5.4.60.0100.04716.37
5.4.50.0200.04716.63
5.4.40.0070.07016.52
5.4.30.0170.06016.38
5.4.20.0070.07316.41
5.4.10.0200.05316.45
5.4.00.0130.06315.85
5.3.280.0100.04714.81
5.3.270.0170.06014.57
5.3.260.0100.05014.62
5.3.250.0070.05314.59
5.3.240.0130.04714.67
5.3.230.0070.06014.58
5.3.220.0070.05014.54
5.3.210.0030.06014.55
5.3.200.0070.05314.65
5.3.190.0030.05714.55
5.3.180.0170.04714.72
5.3.170.0200.05314.39
5.3.160.0100.05314.65
5.3.150.0100.05014.58
5.3.140.0100.05714.63
5.3.130.0130.05314.77
5.3.120.0100.05314.63
5.3.110.0030.08714.56
5.3.100.0130.05714.11
5.3.90.0130.04714.21
5.3.80.0070.05013.93
5.3.70.0070.05314.05
5.3.60.0070.05013.83
5.3.50.0070.06314.11
5.3.40.0100.05013.97
5.3.30.0100.04713.89
5.3.20.0100.04313.52
5.3.10.0070.05013.65
5.3.00.0070.05013.47
5.2.170.0100.04311.21
5.2.160.0100.05311.13
5.2.150.0070.04011.22
5.2.140.0130.03311.14
5.2.130.0070.03711.17
5.2.120.0130.03011.09
5.2.110.0130.05311.17
5.2.100.0070.04011.09
5.2.90.0130.03311.18
5.2.80.0100.03711.25
5.2.70.0030.04011.18
5.2.60.0070.04711.02
5.2.50.0030.04311.10
5.2.40.0070.04011.21
5.2.30.0130.03310.92
5.2.20.0070.04311.09
5.2.10.0070.04010.93
5.2.00.0100.03310.78
5.1.60.0000.03710.09
5.1.50.0100.03010.06
5.1.40.0100.04310.08
5.1.30.0030.05010.41
5.1.20.0070.04010.42
5.1.10.0000.04010.06
5.1.00.0130.02710.06
5.0.50.0030.0378.59
5.0.40.0000.0308.36
5.0.30.0000.0438.14
5.0.20.0070.0238.23
5.0.10.0070.0378.16
5.0.00.0000.0438.15
4.4.90.0070.0177.18
4.4.80.0030.0207.18
4.4.70.0000.0307.18
4.4.60.0070.0177.18
4.4.50.0070.0237.18
4.4.40.0030.0337.18
4.4.30.0030.0207.18
4.4.20.0130.0237.18
4.4.10.0070.0277.18
4.4.00.0030.0307.18
4.3.110.0030.0237.18
4.3.100.0000.0237.18
4.3.90.0030.0207.18
4.3.80.0070.0277.18
4.3.70.0030.0207.18
4.3.60.0000.0237.18
4.3.50.0070.0177.18
4.3.40.0030.0307.18
4.3.30.0000.0237.18
4.3.20.0070.0237.18
4.3.10.0030.0277.18
4.3.00.0100.0236.95

preferences:
159.07 ms | 1394 KiB | 7 Q