3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function blah() { $foo = function(){ var_dump(get_called_class()); }; $foo(); } } class Bar extends Foo { } Bar::blah();

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.40.0070.01418.84
8.3.30.0150.00318.79
8.3.20.0070.00020.30
8.3.10.0080.00022.09
8.3.00.0040.00422.46
8.2.170.0070.00722.96
8.2.160.0090.00920.92
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0000.01021.07
8.2.100.0090.00317.91
8.2.90.0040.00417.71
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0030.00618.05
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0070.00017.98
8.2.20.0070.00017.64
8.2.10.0040.00417.68
8.2.00.0000.01017.77
8.1.270.0080.00022.06
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0030.00622.19
8.1.230.0070.00422.66
8.1.220.0040.00417.78
8.1.210.0000.00820.02
8.1.200.0000.00917.35
8.1.190.0000.00717.51
8.1.180.0000.00818.10
8.1.170.0030.00518.66
8.1.160.0050.00221.96
8.1.150.0050.00318.64
8.1.140.0040.00417.44
8.1.130.0000.00717.76
8.1.120.0040.00417.34
8.1.110.0070.00017.51
8.1.100.0050.00317.33
8.1.90.0070.00017.48
8.1.80.0030.00417.44
8.1.70.0030.00317.36
8.1.60.0000.00817.62
8.1.50.0040.00417.47
8.1.40.0040.00417.41
8.1.30.0020.00517.46
8.1.20.0000.00817.63
8.1.10.0030.00617.54
8.1.00.0040.00417.39
8.0.300.0000.00720.13
8.0.290.0070.00016.63
8.0.280.0000.00718.30
8.0.270.0030.00317.25
8.0.260.0100.00016.67
8.0.250.0030.00316.82
8.0.240.0070.00016.85
8.0.230.0000.00716.77
8.0.220.0000.00716.81
8.0.210.0030.00316.80
8.0.200.0070.00016.80
8.0.190.0040.00416.93
8.0.180.0050.00216.82
8.0.170.0000.00716.95
8.0.160.0000.00716.89
8.0.150.0000.00716.83
8.0.140.0040.00416.78
8.0.130.0060.00013.34
8.0.120.0040.00416.72
8.0.110.0020.00516.86
8.0.100.0070.00016.84
8.0.90.0040.00416.74
8.0.80.0090.00616.82
8.0.70.0000.00816.72
8.0.60.0050.00216.77
8.0.50.0040.00416.97
8.0.30.0110.00817.13
8.0.20.0060.01317.40
8.0.10.0030.00516.79
8.0.00.0130.00516.76
7.4.330.0050.00015.09
7.4.320.0040.00416.60
7.4.300.0000.00716.56
7.4.290.0090.00016.59
7.4.280.0070.00016.61
7.4.270.0000.00616.39
7.4.260.0000.00716.56
7.4.250.0020.00516.43
7.4.240.0060.00116.56
7.4.230.0030.00316.38
7.4.220.0130.00916.61
7.4.210.0090.00816.51
7.4.200.0040.00416.45
7.4.190.0070.00016.39
7.4.160.0090.00616.40
7.4.150.0040.01317.40
7.4.140.0100.00817.86
7.4.130.0070.01216.54
7.4.120.0100.00716.57
7.4.110.0030.01316.45
7.4.100.0040.01516.53
7.4.90.0040.01216.36
7.4.80.0150.00319.39
7.4.70.0080.00816.66
7.4.60.0060.01016.50
7.4.50.0000.00616.26
7.4.40.0100.00622.77
7.4.30.0070.01016.48
7.4.00.0070.01115.03
7.3.330.0030.00313.11
7.3.320.0030.00313.29
7.3.310.0000.00716.39
7.3.300.0070.00016.38
7.3.290.0110.00716.34
7.3.280.0090.00716.29
7.3.270.0070.01017.40
7.3.260.0080.00916.33
7.3.250.0100.00716.38
7.3.240.0100.00716.57
7.3.230.0090.00816.45
7.3.210.0090.01116.19
7.3.200.0090.01319.39
7.3.190.0090.00916.54
7.3.180.0040.01116.27
7.3.170.0090.00616.53
7.3.160.0110.00616.51
7.3.120.0030.00714.67
7.3.10.0090.00916.42
7.3.00.0400.00716.18
7.2.330.0130.00616.36
7.2.320.0120.00616.20
7.2.310.0040.01416.56
7.2.300.0030.01516.31
7.2.290.0130.00316.35
7.2.130.0090.00916.25
7.2.120.0290.00316.55
7.2.110.0140.00716.17
7.2.100.0110.00416.15
7.2.90.0170.00815.87
7.2.80.0060.01316.16
7.2.70.0100.00716.42
7.2.60.0100.00316.48
7.2.50.0030.01416.53
7.2.40.0140.00416.21
7.2.30.0130.00616.49
7.2.20.0110.00816.39
7.2.10.0160.00316.16
7.2.00.0090.00717.94
7.1.250.0070.01315.12
7.1.200.0040.01115.77
7.1.100.0080.00317.96
7.1.70.0040.00417.10
7.1.60.0070.01019.82
7.1.50.0070.01416.88
7.1.00.0100.07022.24
7.0.200.0030.00616.78
7.0.140.0070.09022.07
7.0.60.0170.05719.91
7.0.50.0030.04717.95
7.0.40.0130.07320.23
7.0.30.0300.05320.21
7.0.20.0230.08720.18
7.0.10.0200.07320.23
7.0.00.0130.08020.09
5.6.280.0030.07020.93
5.6.210.0030.08720.72
5.6.200.0100.08018.15
5.6.190.0170.07320.61
5.6.180.0070.08020.47
5.6.170.0330.07320.53
5.6.160.0070.06720.50
5.6.150.0100.07318.18
5.6.140.0170.07718.15
5.6.130.0030.04718.17
5.6.120.0170.07721.01
5.6.110.0070.07721.10
5.6.100.0070.09021.04
5.6.90.0100.07720.97
5.6.80.0130.05720.39
5.5.350.0100.07320.42
5.5.340.0030.04717.98
5.5.330.0030.09020.44
5.5.320.0300.04720.27
5.5.310.0330.08020.37
5.5.300.0100.08017.98
5.5.290.0000.05318.03
5.5.280.0000.06320.66
5.5.270.0070.06720.87
5.5.260.0100.06720.77
5.5.250.0130.07020.59
5.5.240.0100.07020.07
5.4.450.0570.04719.28
5.4.440.0100.04719.55
5.4.430.1370.00019.55
5.4.420.1400.00019.30
5.4.410.0100.05318.98
5.4.400.0200.04018.76
5.4.390.0000.06018.77
5.4.380.0430.04318.53
5.4.370.0270.05318.63
5.4.360.0100.06018.63
5.4.350.0170.05718.70
5.4.340.0300.04318.74
5.4.320.0070.03612.51
5.4.310.0070.03812.50
5.4.300.0050.03912.51
5.4.290.0090.04012.50
5.4.280.0070.03512.37
5.4.270.0100.03312.37
5.4.260.0070.03712.38
5.4.250.0090.03712.38
5.4.240.0070.03712.37
5.4.230.0070.03912.36
5.4.220.0080.03612.36
5.4.210.0070.03712.37
5.4.200.0070.03812.37
5.4.190.0050.03812.36
5.4.180.0080.03612.36
5.4.170.0070.03512.37
5.4.160.0030.04012.37
5.4.150.0090.03612.36
5.4.140.0120.03812.05
5.4.130.0050.04212.03
5.4.120.0040.04111.99
5.4.110.0140.04311.99
5.4.100.0120.04211.99
5.4.90.0140.05311.99
5.4.80.0100.05211.99
5.4.70.0140.04511.99
5.4.60.0110.04611.99
5.4.50.0040.05211.98
5.4.40.0090.03711.97
5.4.30.0080.03511.97
5.4.20.0060.03611.96
5.4.10.0100.03411.97
5.4.00.0050.03811.46
5.3.290.0060.04012.80
5.3.280.0070.04312.71
5.3.270.0080.03812.73
5.3.260.0100.03812.72
5.3.250.0070.04212.72
5.3.240.0080.03812.72
5.3.230.0070.03912.70
5.3.220.0080.03612.68
5.3.210.0050.04112.68
5.3.200.0060.03612.68
5.3.190.0040.03912.68
5.3.180.0060.03812.68
5.3.170.0060.03612.67
5.3.160.0090.03512.67
5.3.150.0050.03912.68
5.3.140.0100.03512.66
5.3.130.0080.03812.66
5.3.120.0080.04512.66
5.3.110.0080.04212.66
5.3.100.0050.03912.12
5.3.90.0100.03412.09
5.3.80.0070.04612.07
5.3.70.0060.03812.08
5.3.60.0060.03712.06
5.3.50.0060.03712.00
5.3.40.0060.03712.00
5.3.30.0060.03711.96
5.3.20.0050.03711.75
5.3.10.0060.03511.71
5.3.00.0050.03711.70
5.2.170.0030.0339.19
5.2.160.0070.0269.18
5.2.150.0050.0319.18
5.2.140.0030.0369.18
5.2.130.0040.0319.14
5.2.120.0030.0319.14
5.2.110.0020.0329.15
5.2.100.0050.0279.14
5.2.90.0040.0299.14
5.2.80.0070.0389.14
5.2.70.0080.0279.14
5.2.60.0060.0309.09
5.2.50.0050.0299.07
5.2.40.0070.0349.04
5.2.30.0100.0359.02
5.2.20.0090.0359.00
5.2.10.0020.0318.92
5.2.00.0040.0298.78
5.1.60.0020.0268.07
5.1.50.0060.0238.06
5.1.40.0050.0248.04
5.1.30.0030.0288.39
5.1.20.0060.0318.42
5.1.10.0080.0238.14
5.1.00.0030.0278.14
5.0.50.0030.0216.61
5.0.40.0050.0186.48
5.0.30.0030.0316.28
5.0.20.0030.0196.26
5.0.10.0020.0216.23
5.0.00.0010.0326.23
4.4.90.0020.0164.78
4.4.80.0020.0154.75
4.4.70.0040.0144.76
4.4.60.0030.0154.75
4.4.50.0010.0174.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0304.75
4.3.110.0020.0234.67
4.3.100.0090.0154.66
4.3.90.0020.0184.64
4.3.80.0050.0224.58
4.3.70.0050.0134.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0030.0153.29
4.3.20.0050.0133.26
4.3.10.0040.0143.23
4.3.00.0030.01715.60

preferences:
82.18 ms | 400 KiB | 5 Q