3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class Foo { function test() { static::staticTest(); } function test2() { self::staticTest(); } function test3() { static::staticTest(); } public static function staticTest() { echo 'jow'.PHP_EOL; } } class Bar extends Foo { } $foo = new Foo(); $foo->test(); $foo->test2(); $foo->test3(); $bar = new Bar(); $bar->test(); $bar->test2(); $bar->test3();

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.0070.00718.30
8.3.50.0140.00722.12
8.3.40.0120.00318.74
8.3.30.0090.00618.98
8.3.20.0040.00420.16
8.3.10.0000.00822.04
8.3.00.0080.00022.34
8.2.180.0160.00018.06
8.2.170.0040.01122.96
8.2.160.0100.00320.90
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.23
8.2.110.0070.00322.29
8.2.100.0100.00717.59
8.2.90.0040.00419.28
8.2.80.0060.00617.97
8.2.70.0030.00517.63
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0040.00418.16
8.2.30.0000.00718.07
8.2.20.0020.00517.70
8.2.10.0040.00417.50
8.2.00.0000.00717.61
8.1.280.0070.01125.92
8.1.270.0090.00022.07
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00624.03
8.1.230.0100.00019.17
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00616.98
8.1.190.0050.00317.40
8.1.180.0080.00018.10
8.1.170.0000.00918.44
8.1.160.0050.00221.96
8.1.150.0040.00418.57
8.1.140.0000.00717.36
8.1.130.0000.00717.75
8.1.120.0000.00717.45
8.1.110.0000.00717.43
8.1.100.0000.00717.38
8.1.90.0000.00817.25
8.1.80.0000.00817.40
8.1.70.0030.00317.41
8.1.60.0030.00617.57
8.1.50.0000.00717.54
8.1.40.0030.00617.51
8.1.30.0000.00817.61
8.1.20.0050.00317.57
8.1.10.0060.00317.55
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0030.00318.46
8.0.270.0030.00317.31
8.0.260.0060.00016.89
8.0.250.0040.00416.91
8.0.240.0040.00416.78
8.0.230.0030.00316.77
8.0.220.0000.00716.86
8.0.210.0030.00316.84
8.0.200.0060.00016.91
8.0.190.0000.00716.91
8.0.180.0030.00316.86
8.0.170.0000.00716.75
8.0.160.0040.00416.84
8.0.150.0000.00716.84
8.0.140.0030.00516.86
8.0.130.0040.00413.28
8.0.120.0030.00516.77
8.0.110.0040.00416.84
8.0.100.0000.00716.84
8.0.90.0050.00216.79
8.0.80.0030.01216.90
8.0.70.0000.00816.68
8.0.60.0050.00316.95
8.0.50.0040.00416.74
8.0.30.0090.00917.15
8.0.20.0070.01317.40
8.0.10.0000.00716.93
8.0.00.0090.00816.67
7.4.330.0060.00015.00
7.4.320.0030.00316.44
7.4.300.0000.00616.58
7.4.290.0000.00816.56
7.4.280.0030.00316.40
7.4.270.0030.00316.54
7.4.260.0080.00016.39
7.4.250.0000.00816.40
7.4.240.0040.00416.62
7.4.230.0000.00716.51
7.4.220.0090.01316.57
7.4.210.0050.01116.51
7.4.200.0000.00716.51
7.4.190.0070.00016.65
7.4.160.0060.01016.29
7.4.150.0030.02117.40
7.4.140.0120.01217.86
7.4.130.0110.00816.65
7.4.120.0120.00616.36
7.4.110.0110.00716.58
7.4.100.0150.00316.57
7.4.90.0120.00616.53
7.4.80.0120.01319.39
7.4.70.0120.00616.42
7.4.60.0070.01016.42
7.4.50.0020.00216.47
7.4.40.0060.01122.77
7.4.30.0140.00716.48
7.4.00.0080.00815.10
7.3.330.0020.00213.21
7.3.320.0000.00513.23
7.3.310.0000.00716.29
7.3.300.0000.00616.23
7.3.290.0030.01416.30
7.3.280.0090.00716.22
7.3.270.0050.01317.40
7.3.260.0060.01316.60
7.3.250.0090.01216.30
7.3.240.0060.01016.41
7.3.230.0000.02216.40
7.3.210.0090.01616.46
7.3.200.0170.00819.39
7.3.190.0030.01416.23
7.3.180.0080.00816.19
7.3.170.0130.00316.27
7.3.160.0080.00816.27
7.3.120.0100.00614.63
7.2.330.0060.01616.64
7.2.320.0120.00616.61
7.2.310.0170.00716.41
7.2.300.0130.00316.53
7.2.290.0060.01016.55
7.2.00.0100.00319.18
7.1.200.0080.00415.39
7.1.100.0060.00318.00
7.1.70.0000.00816.78
7.1.60.0100.00719.82
7.1.50.0150.00616.97
7.1.00.0030.07722.57
7.0.200.0670.00714.68
7.0.140.0070.07021.94
7.0.60.0070.07720.02
7.0.50.0130.03317.97
7.0.40.0030.08720.05
7.0.30.0130.04720.15
7.0.20.0370.07320.26
7.0.10.0370.05320.20
7.0.00.0030.04020.07
5.6.280.0000.07721.16
5.6.210.0070.08020.73
5.6.200.0130.08018.18
5.6.190.0130.05020.33
5.6.180.0070.06720.47
5.6.170.0300.08020.48
5.6.160.0070.04020.43
5.6.150.0100.08018.21
5.6.140.0100.08018.14
5.6.130.0070.07318.13
5.6.120.0100.04020.96
5.6.110.0070.04321.05
5.6.100.0000.07320.88
5.6.90.0100.08020.97
5.6.80.0070.07020.39
5.6.70.4400.03720.39
5.5.350.0030.03320.44
5.5.340.0070.07317.93
5.5.330.0100.03320.27
5.5.320.0270.04020.25
5.5.310.0230.08020.41
5.5.300.0100.08017.95
5.5.290.0030.04018.07
5.5.280.0070.07020.88
5.5.270.0030.05720.98
5.5.260.0100.06720.77
5.5.250.0100.08320.61
5.5.240.0100.07320.19
5.4.450.0130.06719.38
5.4.440.3500.03319.39
5.4.430.2300.04319.25
5.4.420.1770.03719.50
5.4.410.2900.03319.19
5.4.400.3500.04018.88
5.4.390.3500.04019.06
5.4.380.3330.03718.87
5.4.370.3330.03718.98
5.4.360.3770.03319.06
5.4.350.4130.04319.15
5.4.340.3430.04018.94
5.4.320.3200.03319.15
5.4.310.4300.03719.06
5.4.300.3470.03719.05
5.4.290.3330.04019.07
5.4.280.4030.03018.97
5.4.270.3500.03019.15
5.4.260.3930.03719.05
5.4.250.4400.03318.87
5.4.240.3930.03319.04
5.4.230.4000.04318.86
5.4.220.3500.04019.05
5.4.210.3970.03319.11
5.4.200.3370.05019.15
5.4.190.3570.03018.90
5.4.180.4100.04019.05
5.4.170.3830.03718.91
5.4.160.3830.03718.84
5.4.150.4430.03019.05
5.4.140.4300.03016.56
5.4.130.3770.03316.31
5.4.120.3400.03316.42
5.4.110.3600.03716.32
5.4.100.3830.03316.34
5.4.90.3570.04316.59
5.4.80.3770.03016.49
5.4.70.3100.03716.58
5.4.60.3230.04016.24
5.4.50.4530.03316.16
5.4.40.4330.04316.24
5.4.30.3700.03716.31
5.4.20.3770.03716.51
5.4.10.4170.04316.53
5.4.00.4230.03315.79
5.3.290.4230.03714.67
5.3.280.3400.03714.82
5.3.270.4270.04014.53
5.3.260.4130.04314.51
5.3.250.4030.04014.52
5.3.240.4270.03314.63
5.3.230.3830.03714.51
5.3.220.3470.04014.54
5.3.210.3330.04314.64
5.3.200.3630.03714.65
5.3.190.4330.04014.79
5.3.180.3770.03714.57
5.3.170.3470.04014.68
5.3.160.3630.03714.61
5.3.150.3700.03714.61
5.3.140.4270.03714.68
5.3.130.3700.04014.54
5.3.120.3500.04014.77
5.3.110.3330.04014.71
5.3.100.3870.03713.96
5.3.90.3370.04014.18
5.3.80.3330.04013.94
5.3.70.4100.04014.05
5.3.60.4930.05014.01
5.3.50.4130.03714.01
5.3.40.0830.03313.88
5.3.30.0070.07314.00
5.3.20.4500.03313.61
5.3.10.3400.03313.68
5.3.00.4430.04313.63
5.2.170.3530.03711.07
5.2.160.3770.01711.19
5.2.150.0100.04711.07
5.2.140.0070.05711.14
5.2.130.3200.02711.18
5.2.120.3130.02711.15
5.2.110.3630.03311.11
5.2.100.3570.02011.08
5.2.90.2430.02311.07
5.2.80.2470.02711.10
5.2.70.2470.03311.10
5.2.60.2830.02011.11
5.2.50.2300.03311.07
5.2.40.1830.03010.95
5.2.30.1970.03010.98
5.2.20.2200.02711.07
5.2.10.2200.03010.79
5.2.00.2130.02710.68
5.1.60.2170.02310.07
5.1.50.1200.03010.12
5.1.40.2400.0209.90
5.1.30.1900.02010.45
5.1.20.1700.02710.25
5.1.10.1800.02310.04
5.1.00.0330.03710.07
5.0.50.0000.0378.77
5.0.40.0130.0338.39
5.0.30.0030.0378.22
5.0.20.0070.0408.45
5.0.10.0900.0278.16
5.0.00.1530.0338.14
4.4.90.1130.0135.82
4.4.80.1070.0175.80
4.4.70.0570.0175.79
4.4.60.0870.0135.89
4.4.50.1130.0135.89
4.4.40.0900.0205.84
4.4.30.0370.0175.84
4.4.20.1100.0175.86
4.4.10.0000.0375.91
4.4.00.0000.0335.91
4.3.110.0000.0275.75
4.3.100.0070.0235.70
4.3.90.0070.0305.69
4.3.80.1570.0235.77
4.3.70.1330.0175.74
4.3.60.1570.0175.80
4.3.50.1370.0175.72
4.3.40.1670.0235.73
4.3.30.0830.0205.59
4.3.20.0870.0205.60
4.3.10.0800.0175.60
4.3.00.0970.0305.60

preferences:
41.31 ms | 401 KiB | 5 Q