3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static function ii(){ echo 'aaaaa'; } public function aa(){ self::ii();} } class b extends a { public function aa(){ $a = new a(); $a->aa(); } } $bb = new b(); $bb->aa();

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)
8.3.60.0140.00718.20
8.3.50.0180.00421.98
8.3.40.0110.00418.71
8.3.30.0070.00720.17
8.3.20.0060.00320.09
8.3.10.0040.00421.92
8.3.00.0000.00822.26
8.2.180.0140.00718.16
8.2.170.0150.00022.96
8.2.160.0100.00322.13
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0150.00326.16
8.2.120.0040.00420.93
8.2.110.0060.00321.99
8.2.100.0130.00317.73
8.2.90.0080.00019.09
8.2.80.0070.00019.35
8.2.70.0060.00317.48
8.2.60.0000.00718.04
8.2.50.0000.00818.07
8.2.40.0070.00018.16
8.2.30.0040.00418.05
8.2.20.0000.00717.46
8.2.10.0070.00017.63
8.2.00.0070.00017.56
8.1.280.0040.01125.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0050.00523.96
8.1.230.0090.00319.04
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0000.00717.39
8.1.180.0040.00418.75
8.1.170.0000.00918.64
8.1.160.0040.00422.13
8.1.150.0050.00318.62
8.1.140.0060.00317.38
8.1.130.0030.00317.89
8.1.120.0030.00317.32
8.1.110.0040.00417.39
8.1.100.0040.00417.35
8.1.90.0000.00717.29
8.1.80.0050.00517.27
8.1.70.0030.00317.35
8.1.60.0030.00617.56
8.1.50.0000.00717.57
8.1.40.0080.00017.52
8.1.30.0070.00017.45
8.1.20.0000.00817.60
8.1.10.0000.00717.43
8.1.00.0080.00517.46
8.0.300.0000.00818.77
8.0.290.0040.00417.05
8.0.280.0000.00718.36
8.0.270.0050.00217.19
8.0.260.0060.00016.82
8.0.250.0030.00316.76
8.0.240.0060.00316.85
8.0.230.0000.00716.83
8.0.220.0040.00416.81
8.0.210.0000.00816.71
8.0.200.0000.00616.88
8.0.190.0000.00716.86
8.0.180.0070.00016.87
8.0.170.0050.00216.83
8.0.160.0000.00716.69
8.0.150.0000.00716.68
8.0.140.0040.00416.79
8.0.130.0000.00613.25
8.0.120.0000.00816.82
8.0.110.0000.00716.86
8.0.100.0040.00416.88
8.0.90.0040.00416.77
8.0.80.0080.00716.74
8.0.70.0080.00016.61
8.0.60.0000.00716.89
8.0.50.0000.00716.89
8.0.30.0110.00716.91
8.0.20.0130.00617.40
8.0.10.0000.00716.90
8.0.00.0110.00716.95
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0030.00316.60
7.4.290.0000.00716.60
7.4.280.0000.01116.48
7.4.270.0070.00016.61
7.4.260.0000.00613.38
7.4.250.0040.00416.48
7.4.240.0050.00316.47
7.4.230.0030.00316.70
7.4.220.0090.00916.54
7.4.210.0100.00516.59
7.4.200.0030.00316.53
7.4.190.0070.00016.72
7.4.160.0120.00416.40
7.4.150.0040.01317.40
7.4.140.0090.01217.86
7.4.130.0110.00616.48
7.4.120.0160.00316.48
7.4.110.0120.00516.23
7.4.100.0130.00316.39
7.4.90.0110.00616.43
7.4.80.0060.01219.39
7.4.70.0120.00616.32
7.4.60.0040.01216.45
7.4.50.0020.00216.60
7.4.40.0150.00422.77
7.4.30.0090.00616.55
7.4.00.0040.01114.83
7.3.330.0020.00213.03
7.3.320.0030.00313.03
7.3.310.0070.00016.11
7.3.300.0070.00016.25
7.3.290.0080.00716.25
7.3.280.0080.00816.20
7.3.270.0120.00617.40
7.3.260.0120.01216.40
7.3.250.0100.00916.29
7.3.240.0070.01016.25
7.3.230.0070.01016.39
7.3.210.0060.01016.39
7.3.200.0110.00519.39
7.3.190.0120.00916.45
7.3.180.0150.00416.30
7.3.170.0070.01016.43
7.3.160.0030.01216.31
7.3.120.0070.00714.71
7.2.330.0120.00816.35
7.2.320.0100.01016.63
7.2.310.0170.00816.75
7.2.300.0060.00916.47
7.2.290.0060.00916.30
7.2.00.0060.00919.21
7.1.100.0070.00717.96
7.1.70.0000.00817.07
7.1.60.0070.01719.43
7.1.50.0070.01516.68
7.1.00.0030.06022.43
7.0.200.0100.00316.64
7.0.140.0030.07321.94
7.0.60.0030.08019.86
7.0.50.0070.04017.88
7.0.40.0130.08720.11
7.0.30.0270.06020.10
7.0.20.0200.08720.34
7.0.10.0000.04720.21
7.0.00.0030.04320.12
5.6.280.0070.06720.82
5.6.210.0030.04720.76
5.6.200.0070.08718.15
5.6.190.0130.03320.48
5.6.180.0230.05720.52
5.6.170.0500.07020.45
5.6.160.0070.04320.54
5.6.150.0000.04318.18
5.6.140.0100.07718.18
5.6.130.0030.07318.14
5.6.120.0070.08020.98
5.6.110.0130.04721.00
5.6.100.0170.07021.02
5.6.90.0030.08721.11
5.6.80.0030.04720.53
5.5.350.0030.08020.48
5.5.340.0100.08018.02
5.5.330.0070.03720.27
5.5.320.0270.05020.28
5.5.310.0170.03720.23
5.5.300.0070.05017.93
5.5.290.0030.04017.98
5.5.280.0070.04720.88
5.5.270.0070.08320.77
5.5.260.0100.08020.97
5.5.250.0170.08020.62
5.5.240.0230.08020.37
5.4.450.0470.06319.39
5.4.440.0730.05719.48
5.4.430.0600.06019.55
5.4.420.0370.06019.30
5.4.410.0930.08019.45
5.4.400.0830.06319.26
5.4.390.0930.05319.14
5.4.380.0270.05318.78
5.4.370.0230.04318.76
5.4.360.0200.04318.76
5.4.350.0170.06412.02
5.4.340.0110.04612.02
5.4.320.0040.04012.51
5.4.310.0060.03912.50
5.4.300.0040.03912.51
5.4.290.0080.03612.50
5.4.280.0070.03912.40
5.4.270.0090.03712.40
5.4.260.0040.03912.40
5.4.250.0080.04912.39
5.4.240.0030.06018.80
5.4.230.0100.07018.75
5.4.220.0170.04319.09
5.4.210.0030.05318.65
5.4.200.0070.05018.76
5.4.190.0100.05718.91
5.4.180.0070.06718.93
5.4.170.0070.05318.94
5.4.160.0130.04719.01
5.4.150.0070.05718.80
5.4.140.0070.05016.45
5.4.130.0000.05716.43
5.4.120.0070.04716.64
5.4.110.0100.04316.66
5.4.100.0100.04716.60
5.4.90.0200.04716.60
5.4.80.0070.04716.61
5.4.70.0030.05316.60
5.4.60.0070.05316.34
5.4.50.0070.04716.34
5.4.40.0070.05716.32
5.4.30.0000.06316.42
5.4.20.0030.07716.33
5.4.10.0170.05716.34
5.4.00.0070.04716.00
5.3.290.0070.04912.80
5.3.280.0070.07714.68
5.3.270.0030.05314.58
5.3.260.0030.05314.74
5.3.250.0030.05314.83
5.3.240.0100.04714.79
5.3.230.0030.05314.69
5.3.220.0100.04714.56
5.3.210.0130.04714.66
5.3.200.0030.05314.65
5.3.190.0000.07714.66
5.3.180.0130.06714.57
5.3.170.0100.05014.47
5.3.160.0100.06014.63
5.3.150.0000.06014.65
5.3.140.0070.05714.73
5.3.130.0130.04714.71
5.3.120.0030.05714.64
5.3.110.0100.05314.62
5.3.100.0100.04314.05
5.3.90.0100.04313.94
5.3.80.0200.05014.24
5.3.70.0130.04314.18
5.3.60.0000.05314.02
5.3.50.0100.04714.04
5.3.40.0070.04713.93
5.3.30.0070.04713.88
5.3.20.0030.05013.79
5.3.10.0030.05013.72
5.3.00.0000.05013.63
5.2.170.0000.04310.98
5.2.160.0030.04011.12
5.2.150.0030.04010.98
5.2.140.0000.06011.22
5.2.130.0000.04711.19
5.2.120.0030.04011.33
5.2.110.0000.04311.11
5.2.100.0070.03311.18
5.2.90.0070.03711.19
5.2.80.0000.04310.99
5.2.70.0070.03711.08
5.2.60.0000.06711.14
5.2.50.0000.04311.02
5.2.40.0070.05311.02
5.2.30.0000.04710.88
5.2.20.0170.03711.12
5.2.10.0070.03710.84
5.2.00.0130.03310.70
5.1.60.0000.0379.92
5.1.50.0030.0379.97
5.1.40.0030.03710.02
5.1.30.0030.04310.41
5.1.20.0070.05710.58
5.1.10.0030.03310.23
5.1.00.0000.04010.17
5.0.50.0030.0278.79
5.0.40.0030.0238.51
5.0.30.0070.0538.32
5.0.20.0030.0378.27
5.0.10.0030.0238.15
5.0.00.0030.0508.13
4.4.90.0030.0176.75
4.4.80.0070.0176.75
4.4.70.0000.0236.75
4.4.60.0000.0306.75
4.4.50.0030.0206.75
4.4.40.0000.0336.75
4.4.30.0000.0236.75
4.4.20.0030.0206.75
4.4.10.0030.0206.75
4.4.00.0030.0306.75
4.3.110.0000.0236.75
4.3.100.0000.0206.75
4.3.90.0070.0136.75
4.3.80.0030.0306.75
4.3.70.0030.0176.75
4.3.60.0000.0206.75
4.3.50.0030.0206.75
4.3.40.0000.0336.75
4.3.30.0030.0236.75
4.3.20.0000.0336.75
4.3.10.0000.0306.75
4.3.00.0170.0238.09

preferences:
41.59 ms | 401 KiB | 5 Q