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 : '. $insta1->compt();

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.0030.05718.80
5.4.250.0030.05318.97
5.4.240.0230.03718.77
5.4.230.0030.07319.01
5.4.220.0030.08018.65
5.4.210.0170.05719.03
5.4.200.0170.07019.09
5.4.190.0030.05718.94
5.4.180.0030.07719.02
5.4.170.0100.07318.95
5.4.160.0130.05018.98
5.4.150.0100.06319.01
5.4.140.0130.04716.31
5.4.130.0100.05316.45
5.4.120.0130.06016.27
5.4.110.0100.04716.47
5.4.100.0030.05016.36
5.4.90.0070.04716.57
5.4.80.0030.06316.40
5.4.70.0030.05316.48
5.4.60.0070.05016.39
5.4.50.0030.05316.46
5.4.40.0070.05016.45
5.4.30.0100.05716.50
5.4.20.0030.05316.38
5.4.10.0100.04716.50
5.4.00.0230.04015.84
5.3.280.0100.06314.50
5.3.270.0070.06714.70
5.3.260.0070.06314.59
5.3.250.0200.04014.43
5.3.240.0030.05714.69
5.3.230.0030.05314.57
5.3.220.0030.05314.74
5.3.210.0030.05314.79
5.3.200.0070.05014.54
5.3.190.0070.06714.65
5.3.180.0000.05714.65
5.3.170.0100.05314.70
5.3.160.0000.07714.80
5.3.150.0070.05314.64
5.3.140.0100.05014.77
5.3.130.0200.04014.57
5.3.120.0130.06014.52
5.3.110.0130.04714.77
5.3.100.0200.05014.20
5.3.90.0130.07014.08
5.3.80.0030.05313.92
5.3.70.0070.06314.18
5.3.60.0000.05714.08
5.3.50.0030.05314.04
5.3.40.0100.04313.86
5.3.30.0170.03713.98
5.3.20.0000.05313.62
5.3.10.0070.05713.70
5.3.00.0170.04313.64
5.2.170.0070.03711.14
5.2.160.0030.04311.23
5.2.150.0070.04011.12
5.2.140.0030.04311.11
5.2.130.0070.04011.26
5.2.120.0030.04011.10
5.2.110.0070.03711.17
5.2.100.0100.03311.18
5.2.90.0030.04011.17
5.2.80.0130.03311.06
5.2.70.0070.05310.99
5.2.60.0130.04311.27
5.2.50.0030.04010.97
5.2.40.0100.03311.21
5.2.30.0100.03310.79
5.2.20.0030.04010.93
5.2.10.0100.03710.84
5.2.00.0130.03010.80
5.1.60.0070.03010.00
5.1.50.0030.04010.09
5.1.40.0100.03010.03
5.1.30.0070.04310.55
5.1.20.0030.03710.43
5.1.10.0100.03310.06
5.1.00.0100.04310.05
5.0.50.0100.0308.59
5.0.40.0100.0208.56
5.0.30.0030.0408.18
5.0.20.0030.0278.20
5.0.10.0030.0278.36
5.0.00.0070.0378.13
4.4.90.0030.0307.22
4.4.80.0000.0237.22
4.4.70.0030.0237.22
4.4.60.0030.0237.22
4.4.50.0000.0237.22
4.4.40.0000.0407.22
4.4.30.0000.0307.22
4.4.20.0070.0237.22
4.4.10.0000.0237.22
4.4.00.0070.0307.22
4.3.110.0070.0177.22
4.3.100.0070.0177.22
4.3.90.0100.0137.22
4.3.80.0030.0377.22
4.3.70.0000.0237.22
4.3.60.0100.0137.22
4.3.50.0070.0177.22
4.3.40.0000.0337.22
4.3.30.0000.0237.22
4.3.20.0030.0207.22
4.3.10.0030.0207.22
4.3.00.0100.0206.81

preferences:
139.08 ms | 1398 KiB | 7 Q