3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_NONE); class a { static var $test = 10; function afunction() { echo $test; } } $test = new a(); echo $a->afunction();

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.5.120.0130.05317.43
5.5.110.0070.05317.29
5.5.100.0070.07717.21
5.5.90.0070.06317.23
5.5.80.0100.07717.20
5.5.70.0030.08017.25
5.5.60.0030.07017.20
5.5.50.0000.08017.21
5.5.40.0100.07717.23
5.5.30.0030.04717.21
5.5.20.0100.03317.16
5.5.10.0130.07017.22
5.5.00.0070.07717.22
5.4.280.0030.04019.03
5.4.270.0100.03319.12
5.4.260.0070.08019.03
5.4.250.0000.08319.12
5.4.240.0130.07319.04
5.4.230.0130.07019.12
5.4.220.0070.07019.07
5.4.210.0070.06719.02
5.4.200.0100.06719.13
5.4.190.0130.07018.94
5.4.180.0030.04019.01
5.4.170.0070.05718.89
5.4.160.0030.08019.03
5.4.150.0100.07018.87
5.4.140.0070.06316.39
5.4.130.0070.06716.46
5.4.120.0070.05716.44
5.4.110.0100.04716.39
5.4.100.0070.05716.55
5.4.90.0070.04316.42
5.4.80.0270.03016.43
5.4.70.0100.03316.36
5.4.60.0070.06316.43
5.4.50.0100.05716.28
5.4.40.0030.06716.45
5.4.30.0070.07016.58
5.4.20.0000.04016.29
5.4.10.0030.03716.22
5.4.00.0030.07315.90
5.3.280.0170.05714.60
5.3.270.0070.07314.64
5.3.260.0070.08014.60
5.3.250.0070.07014.63
5.3.240.0030.07714.56
5.3.230.0030.06014.59
5.3.220.0030.06714.61
5.3.210.0070.04314.78
5.3.200.0100.07314.64
5.3.190.0070.08014.63
5.3.180.0100.05014.60
5.3.170.0100.04714.55
5.3.160.0070.08014.77
5.3.150.0130.06314.63
5.3.140.0030.07714.51
5.3.130.0130.07714.75
5.3.120.0030.04014.59
5.3.110.0170.07014.62
5.3.100.0070.07014.13
5.3.90.0030.07714.01
5.3.80.0100.05713.86
5.3.70.0100.04014.02
5.3.60.0030.07314.03
5.3.50.0100.07713.96
5.3.40.0030.05313.83
5.3.30.0000.05314.12
5.3.20.0070.03713.73
5.3.10.0100.06713.68
5.3.00.0130.06013.66
5.2.170.0100.06011.15
5.2.160.0030.06311.04
5.2.150.0130.03311.18
5.2.140.0070.03311.10
5.2.130.0000.04311.12
5.2.120.0100.03711.09
5.2.110.0030.04011.15
5.2.100.0070.05011.14
5.2.90.0000.04311.13
5.2.80.0100.03011.10
5.2.70.0000.03711.12
5.2.60.0000.04010.93
5.2.50.0030.06311.02
5.2.40.0070.05311.08
5.2.30.0100.04311.02
5.2.20.0100.05010.93
5.2.10.0070.04310.88
5.2.00.0100.06010.77
5.1.60.0070.0539.96
5.1.50.0070.0509.98
5.1.40.0070.0239.94
5.1.30.0030.04010.34
5.1.20.0070.05710.45
5.1.10.0000.03710.05
5.1.00.0070.05710.14
5.0.50.0100.0338.65
5.0.40.0070.0308.42
5.0.30.0130.0538.23
5.0.20.0000.0478.15
5.0.10.0030.0438.21
5.0.00.0030.0538.21
4.4.90.0030.0207.84
4.4.80.0000.0277.84
4.4.70.0000.0207.84
4.4.60.0030.0337.84
4.4.50.0000.0407.84
4.4.40.0070.0477.84
4.4.30.0000.0307.84
4.4.20.0030.0237.84
4.4.10.0070.0307.84
4.4.00.0030.0577.84
4.3.110.0000.0237.84
4.3.100.0030.0207.84
4.3.90.0000.0407.84
4.3.80.0000.0577.84
4.3.70.0030.0237.84
4.3.60.0070.0177.84
4.3.50.0030.0337.84
4.3.40.0000.0407.84
4.3.30.0030.0377.84
4.3.20.0030.0377.84
4.3.10.0070.0337.84
4.3.00.0070.0237.84

preferences:
139.62 ms | 1394 KiB | 7 Q