3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo_3cc087f8ef209c33982a75e4dd830bb9 { public static function foo() { var_dump(get_called_class(), __CLASS__); return static::bar(); } } class Foo_40a590187207cbf21fdfdda3d84ea122 extends Foo_3cc087f8ef209c33982a75e4dd830bb9 { protected static function bar() { return __CLASS__; } } echo Foo_40a590187207cbf21fdfdda3d84ea122::foo();

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.00316.38
8.3.50.0090.00917.47
8.3.40.0090.00618.89
8.3.30.0090.00918.59
8.3.20.0000.00718.57
8.3.10.0060.00320.45
8.3.00.0050.00319.38
8.2.180.0210.00016.38
8.2.170.0110.01122.96
8.2.160.0100.00321.12
8.2.150.0050.00224.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.73
8.2.110.0000.01019.27
8.2.100.0120.00017.78
8.2.90.0030.00619.34
8.2.80.0050.00219.34
8.2.70.0050.00317.50
8.2.60.0080.00017.68
8.2.50.0060.00318.07
8.2.40.0040.00418.04
8.2.30.0020.00517.98
8.2.20.0040.00417.63
8.2.10.0080.00017.43
8.2.00.0080.00017.43
8.1.270.0040.00424.66
8.1.260.0030.01226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.70
8.1.230.0090.00320.97
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00917.39
8.1.180.0060.00318.10
8.1.170.0000.01018.76
8.1.160.0000.01018.81
8.1.150.0070.00018.51
8.1.140.0000.00717.23
8.1.130.0030.00317.73
8.1.120.0000.00717.36
8.1.110.0020.00517.33
8.1.100.0040.00417.32
8.1.90.0050.00317.23
8.1.80.0040.00417.22
8.1.70.0030.00717.21
8.1.60.0060.00317.44
8.1.50.0060.00317.39
8.1.40.0000.00717.47
8.1.30.0000.00717.63
8.1.20.0020.00517.62
8.1.10.0060.00317.43
8.1.00.0030.00617.47
8.0.300.0070.00019.86
8.0.290.0020.00516.63
8.0.280.0050.00218.45
8.0.270.0030.00317.20
8.0.260.0030.00316.80
8.0.250.0090.00016.98
8.0.240.0090.00016.92
8.0.230.0070.00016.88
8.0.220.0040.00416.90
8.0.210.0030.00316.87
8.0.200.0050.00316.91
8.0.190.0000.00816.73
8.0.180.0000.00816.86
8.0.170.0000.00916.90
8.0.160.0000.00716.82
8.0.150.0050.00516.81
8.0.140.0040.00716.68
8.0.130.0000.00713.30
8.0.120.0020.00516.83
8.0.110.0040.00416.86
8.0.100.0040.00416.77
8.0.90.0000.00716.65
8.0.80.0060.01216.65
8.0.70.0070.00016.73
8.0.60.0000.00816.56
8.0.50.0040.00416.88
8.0.30.0130.00816.99
8.0.20.0110.01317.18
8.0.10.0030.00516.96
8.0.00.0130.00516.75
7.4.330.0050.00012.91
7.4.320.0030.00316.45
7.4.300.0040.00416.62
7.4.290.0030.00316.49
7.4.280.0030.00616.42
7.4.270.0070.00016.55
7.4.260.0050.00013.25
7.4.250.0040.00416.46
7.4.240.0040.00316.42
7.4.230.0030.00316.66
7.4.220.0130.00316.53
7.4.210.0090.00616.57
7.4.200.0040.00416.48
7.4.190.0000.00716.71
7.4.160.0110.00816.54
7.4.150.0090.00916.32
7.4.140.0090.00816.44
7.4.130.0110.00816.59
7.4.120.0080.00816.41
7.4.110.0060.01016.42
7.4.100.0090.00916.41
7.4.90.0060.01016.34
7.4.80.0100.01019.39
7.4.70.0040.01216.38
7.4.60.0030.01416.39
7.4.50.0080.00416.34
7.4.40.0080.00016.51
7.4.30.0090.00616.45
7.4.00.0040.00714.79
7.3.330.0060.00013.19
7.3.320.0000.00513.26
7.3.310.0050.00216.27
7.3.300.0030.00316.11
7.3.290.0030.01016.15
7.3.280.0050.01016.23
7.3.270.0120.00616.46
7.3.260.0060.01216.36
7.3.250.0120.00916.32
7.3.240.0080.01216.49
7.3.230.0160.00016.51
7.3.210.0130.00316.50
7.3.200.0060.01616.15
7.3.190.0150.00316.52
7.3.180.0090.00916.45
7.3.170.0140.00616.24
7.3.160.0090.00616.41
7.3.120.0030.01214.59
7.2.330.0070.01116.30
7.2.320.0100.00716.32
7.2.310.0090.01016.29
7.2.300.0080.00816.38
7.2.290.0110.00516.57
7.2.00.0070.01019.30
7.1.100.0070.00317.84
7.1.70.0000.00816.97
7.1.60.0110.01419.40
7.1.50.0030.01717.02
7.1.00.0000.08022.37
7.0.200.0080.00016.73
7.0.140.0030.07322.15
7.0.120.0130.06022.04
7.0.60.0030.05320.01
7.0.50.0130.07317.87
7.0.40.3300.04720.10
7.0.30.3530.04720.02
7.0.20.3630.04320.15
7.0.10.3400.04320.10
7.0.00.2570.04020.23
5.6.280.0000.07721.13
5.6.210.0130.03320.52
5.6.200.0030.05018.16
5.6.190.3800.04720.45
5.6.180.3600.04320.51
5.6.170.3570.04320.54
5.6.160.3270.03320.48
5.6.150.0430.04020.27
5.6.140.2800.03720.28
5.6.130.3130.04020.27
5.6.120.1400.05720.29
5.6.110.0130.06320.28
5.6.100.3300.04720.37
5.6.90.4230.04320.34
5.6.80.4270.04019.70
5.6.70.3600.05319.65
5.6.60.3530.04319.67
5.6.50.3730.03319.70
5.6.40.3730.04719.88
5.6.30.3200.04319.75
5.6.20.4230.04319.71
5.6.10.3900.04019.65
5.6.00.4130.04019.55
5.5.350.0200.04320.42
5.5.340.0100.07317.98
5.5.330.1300.06720.32
5.5.320.3630.04320.27
5.5.310.3730.04020.27
5.5.300.3330.04720.18
5.5.290.3030.04320.15
5.5.280.0100.06320.07
5.5.270.0170.06320.11
5.5.260.4130.04020.14
5.5.250.4330.04019.94
5.5.240.4330.04019.40
5.5.230.3770.04319.53
5.5.220.3870.03719.48
5.5.210.3370.04319.51
5.5.200.3830.04019.42
5.5.190.3530.03719.43
5.5.180.3330.03719.46
5.5.160.4030.03319.43
5.5.150.4430.03719.42
5.5.140.3900.04019.48
5.5.130.3900.04319.52
5.5.120.3800.03719.51
5.5.110.3930.04019.52
5.5.100.3770.04719.36
5.5.90.3470.04719.58
5.5.80.3670.03319.38
5.5.70.3600.04019.39
5.5.60.3470.04019.34
5.5.50.3670.04019.31
5.5.40.3330.03319.37
5.5.30.3470.04019.40
5.5.20.3930.03719.36
5.5.10.4270.03719.36
5.5.00.3770.03719.41
5.4.450.2700.03019.39
5.4.440.0100.08019.46
5.4.430.1300.05719.36
5.4.420.4000.03019.37
5.4.410.4200.04019.30
5.4.400.4270.03318.96
5.4.390.3700.03719.04
5.4.380.3470.03718.99
5.4.370.3600.03319.02
5.4.360.3930.03719.06
5.4.350.3730.04019.13
5.4.340.4400.05318.89
5.4.320.4230.03019.05
5.4.310.4300.04019.08
5.4.300.4170.03719.09
5.4.290.3570.04019.13
5.4.280.3830.03719.03
5.4.270.3530.03718.98
5.4.260.3830.03019.09
5.4.250.2970.04319.05
5.4.240.3570.03719.27
5.4.230.3670.03319.09
5.4.220.4500.03719.12
5.4.210.3500.03319.04
5.4.200.3570.04718.98
5.4.190.3400.03318.88
5.4.180.4070.03719.04
5.4.170.4230.04019.12
5.4.160.4100.03719.25
5.4.150.3970.03719.03
5.4.140.3930.04016.63
5.4.130.3900.03716.58
5.4.120.4200.03316.42
5.4.110.4170.04016.46
5.4.100.4330.03016.46
5.4.90.4170.03316.44
5.4.80.4300.03316.36
5.4.70.3230.03316.46
5.4.60.3430.03716.30
5.4.50.3630.03016.42
5.4.40.3770.03716.34
5.4.30.4000.04016.38
5.4.20.4400.03016.38
5.4.10.4370.03716.39
5.4.00.3900.02715.85
5.3.290.3870.04014.68
5.3.280.3970.03314.64
5.3.270.4370.03014.45
5.3.260.4100.03314.61
5.3.250.4470.03314.58
5.3.240.4130.04014.61
5.3.230.4030.04014.64
5.3.220.4130.04014.57
5.3.210.4100.04014.53
5.3.200.3930.03014.59
5.3.190.3870.04014.44
5.3.180.4270.03714.57
5.3.170.3670.04014.62
5.3.160.3400.03714.61
5.3.150.3830.04014.61
5.3.140.3670.02314.77
5.3.130.3730.04014.59
5.3.120.4270.03714.40
5.3.110.4400.03314.40
5.3.100.3330.03314.06
5.3.90.4330.03714.07
5.3.80.3500.03014.07
5.3.70.3300.03714.05
5.3.60.2670.03313.99
5.3.50.0030.03313.95
5.3.40.1170.03313.94
5.3.30.3830.04013.98
5.3.20.3270.03713.69
5.3.10.3070.03013.64
5.3.00.3400.03013.50
5.2.170.0030.03311.19
5.2.160.0000.03711.20
5.2.150.2800.03011.04
5.2.140.2800.02711.18
5.2.130.2770.02710.95
5.2.120.2630.02311.13
5.2.110.3000.02711.13
5.2.100.3200.03011.10
5.2.90.2430.02711.16
5.2.80.3230.03011.09
5.2.70.2930.02711.13
5.2.60.3700.02711.15
5.2.50.3400.03311.05
5.2.40.2800.02710.99
5.2.30.2700.03011.07
5.2.20.2630.02710.96
5.2.10.2900.03010.90
5.2.00.3000.02710.79
5.1.60.2100.02310.00
5.1.50.0100.0579.97
5.1.40.0100.0309.93
5.1.30.0030.04010.38
5.1.20.0030.03310.20
5.1.10.2800.02310.10
5.1.00.3000.03010.05
5.0.50.1600.0178.54
5.0.40.1870.0138.38
5.0.30.1630.0308.43
5.0.20.1800.0178.23
5.0.10.1430.0178.12
5.0.00.1430.0278.16
4.4.90.1070.0175.80
4.4.80.1670.0175.80
4.4.70.1700.0235.86
4.4.60.1400.0105.89
4.4.50.1670.0175.80
4.4.40.0000.0475.89
4.4.30.0000.0275.89
4.4.20.1770.0175.87
4.4.10.1670.0205.94
4.4.00.1600.0235.82
4.3.110.1630.0135.80
4.3.100.1500.0205.80
4.3.90.1700.0135.79
4.3.80.1730.0235.77
4.3.70.0930.0175.73
4.3.60.1430.0135.69
4.3.50.1630.0135.75
4.3.40.1370.0235.75
4.3.30.0770.0135.25
4.3.20.0970.0205.25
4.3.10.0970.0275.25
4.3.00.0970.0235.25

preferences:
49.47 ms | 400 KiB | 5 Q