3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test(array $a); } class A { const A = 14; protected static $var = 17; public function test(array $a){ return __METHOD__; } } class B extends A { const A = 15; public function test($a){ return __METHOD__; } } $v = new B(); var_dump(B::test(array(), ''));

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.0000.01418.52
8.3.50.0130.00821.94
8.3.40.0120.00318.76
8.3.30.0000.01419.09
8.3.20.0040.00420.21
8.3.10.0050.00320.47
8.3.00.0080.00019.80
8.2.180.0110.00716.50
8.2.170.0090.00922.96
8.2.160.0090.00620.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00322.05
8.2.110.0090.00019.38
8.2.100.0060.00617.70
8.2.90.0050.00319.08
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0050.00317.55
8.2.50.0000.00918.07
8.2.40.0000.00817.99
8.2.30.0000.00719.18
8.2.20.0040.00417.58
8.2.10.0030.00518.05
8.2.00.0030.00617.63
8.1.280.0070.00725.92
8.1.270.0050.00322.16
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00620.98
8.1.230.0110.00017.51
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0040.00421.96
8.1.150.0070.00018.80
8.1.140.0030.00617.26
8.1.130.0000.00717.84
8.1.120.0050.00317.39
8.1.110.0040.00417.39
8.1.100.0060.00317.41
8.1.90.0040.00417.42
8.1.80.0070.00017.32
8.1.70.0070.00017.28
8.1.60.0040.00417.61
8.1.50.0080.00017.55
8.1.40.0000.00817.54
8.1.30.0030.00617.56
8.1.20.0050.00317.66
8.1.10.0000.00717.48
8.1.00.0080.00017.44
8.0.300.0020.00518.77
8.0.290.0060.00316.75
8.0.280.0030.00318.39
8.0.270.0070.00317.20
8.0.260.0000.00717.07
8.0.250.0030.00317.01
8.0.240.0000.00716.85
8.0.230.0050.00216.96
8.0.220.0050.00216.89
8.0.210.0070.00016.79
8.0.200.0040.00416.94
8.0.190.0000.00716.97
8.0.180.0080.00016.80
8.0.170.0040.00416.90
8.0.160.0040.00416.88
8.0.150.0070.00016.84
8.0.140.0040.00416.86
8.0.130.0030.00313.36
8.0.120.0020.00516.86
8.0.110.0040.00416.87
8.0.100.0000.00816.85
8.0.90.0000.00716.76
8.0.80.0090.01216.84
8.0.70.0000.00716.84
8.0.60.0040.00416.96
8.0.50.0000.00716.93
8.0.30.0090.01017.27
8.0.20.0130.00717.40
8.0.10.0040.00417.01
8.0.00.0060.01216.79
7.4.330.0030.00315.00
7.4.320.0030.00316.52
7.4.300.0030.00316.56
7.4.290.0040.00416.42
7.4.280.0040.00416.55
7.4.270.0030.00316.37
7.4.260.0070.00016.52
7.4.250.0070.00016.61
7.4.240.0040.00416.55
7.4.230.0000.00716.63
7.4.220.0030.01916.59
7.4.210.0030.01216.56
7.4.200.0050.00216.61
7.4.160.0130.00716.55
7.4.150.0040.01417.40
7.4.140.0140.00717.86
7.4.130.0080.00816.47
7.4.120.0120.00716.47
7.4.110.0030.01316.36
7.4.100.0110.00516.32
7.4.90.0030.01416.58
7.4.80.0090.00916.50
7.4.70.0100.00716.49
7.4.60.0040.01316.46
7.4.50.0030.00616.61
7.4.40.0040.01216.40
7.4.30.0170.00316.63
7.4.00.0060.01014.79
7.3.330.0050.00013.26
7.3.320.0000.00513.30
7.3.310.0030.00316.23
7.3.300.0040.00416.18
7.3.290.0080.00716.27
7.3.280.0060.01116.30
7.3.270.0090.00917.40
7.3.260.0030.02116.23
7.3.250.0130.00516.33
7.3.240.0070.01416.21
7.3.230.0060.01016.50
7.3.210.0090.00716.58
7.3.200.0070.01019.39
7.3.190.0090.00916.09
7.3.180.0080.01216.28
7.3.170.0030.01316.38
7.3.160.0150.00716.45
7.2.330.0090.00916.56
7.2.320.0070.01016.29
7.2.310.0080.00816.18
7.2.300.0090.00616.52
7.2.290.0150.00016.66
7.2.80.0040.00716.21
7.2.60.0040.01116.68
7.2.00.0060.00619.37
7.1.200.0000.01315.74
7.1.100.0030.00718.12
7.1.70.0030.01317.18
7.1.60.0060.01619.32
7.1.50.0040.00916.99
7.1.00.0100.07022.48
7.0.200.0000.00716.57
7.0.140.0070.07022.09
7.0.110.0070.08720.06
7.0.100.0030.04019.96
7.0.90.0030.03720.05
7.0.80.0030.03720.06
7.0.70.0500.04319.84
7.0.60.0430.06719.93
7.0.50.0470.03020.00
7.0.40.0000.04319.88
7.0.30.0000.05019.66
7.0.20.0030.04019.72
7.0.10.0100.03719.74
7.0.00.0000.03719.82
5.6.280.0000.07721.11
5.6.260.0030.05320.66
5.6.250.0030.07720.74
5.6.240.0070.04320.49
5.6.230.0030.03720.72
5.6.220.0030.03720.54
5.6.210.0030.03720.62
5.6.200.0030.03320.58
5.6.190.0230.02320.54
5.6.180.0070.04320.72
5.6.170.0100.04020.47
5.6.160.0030.03720.71
5.6.150.0070.04020.56
5.6.140.0100.04020.61
5.6.130.0070.07320.56
5.6.120.0070.05020.62
5.6.110.0130.05720.85
5.6.100.0000.08720.56
5.6.90.0030.04720.54
5.6.80.0000.06320.04
5.6.70.0100.07020.23
5.6.60.0000.04719.97
5.6.50.0170.02720.02
5.6.40.0070.03720.05
5.6.30.0030.05720.07
5.6.20.0030.04020.00
5.6.10.0030.04019.91
5.6.00.0030.06720.21
5.5.380.0070.07717.55
5.5.370.0030.03317.60
5.5.360.0030.07317.71
5.5.350.0000.05017.62
5.5.340.0070.07717.96
5.5.330.0070.04717.96
5.5.320.0030.04317.91
5.5.310.0000.04018.27
5.5.300.0070.04718.25
5.5.290.0100.03018.13
5.5.280.0130.06718.25
5.5.270.0070.05318.07
5.5.260.0030.08018.07
5.5.250.0030.04017.77
5.5.240.0030.04017.52
5.5.230.0070.05717.29
5.5.220.0030.04317.31
5.5.210.0070.05017.29
5.5.200.0070.03717.58
5.5.190.0070.08017.41
5.5.180.0070.03717.41
5.5.160.0130.03317.41
5.5.150.0000.03717.30
5.5.140.0030.03717.60
5.5.130.0070.07017.58
5.5.120.0000.03717.28
5.5.110.0030.06717.46
5.5.100.0000.04317.17
5.5.90.0070.04317.20
5.5.80.0000.04317.34
5.5.70.0100.02717.38
5.5.60.0030.04017.46
5.5.50.0000.04717.31
5.5.40.0170.05717.07
5.5.30.0030.03717.46
5.5.20.0000.04317.33
5.5.10.0070.03017.19
5.5.00.0070.03717.37
5.4.450.0070.06019.51
5.4.440.0100.06019.66
5.4.430.0100.04019.33
5.4.420.0100.06019.66
5.4.410.0000.06719.14
5.4.400.0100.03319.01
5.4.390.0000.03718.95
5.4.380.0030.04019.00
5.4.370.0130.07019.10
5.4.360.0030.06019.02
5.4.350.0030.07719.18
5.4.340.0070.05719.33
5.4.320.0100.05719.32
5.4.310.0070.04719.11
5.4.300.0070.05019.00
5.4.290.0130.03319.02
5.4.280.0030.03319.24
5.4.270.0030.07319.16
5.4.260.0030.06319.24
5.4.250.0070.04719.09
5.4.240.0030.08019.14
5.4.230.0070.07319.18
5.4.220.0170.05719.33
5.4.210.0000.04319.22
5.4.200.0070.04319.17
5.4.190.0000.03719.17
5.4.180.0030.03719.08
5.4.170.0000.04319.22
5.4.160.0070.03319.31
5.4.150.0070.03719.09
5.4.140.0030.04316.65
5.4.130.0030.04316.43
5.4.120.0100.05016.57
5.4.110.0070.07716.32
5.4.100.0030.07716.55
5.4.90.0030.04316.32
5.4.80.0130.06716.51
5.4.70.0070.07316.69
5.4.60.0130.06716.48
5.4.50.0070.06716.57
5.4.40.0030.04316.29
5.4.30.0070.06316.56
5.4.20.0030.03016.38
5.4.10.0030.04316.30
5.4.00.0000.04015.77
5.3.290.0000.04314.82
5.3.280.0030.03714.59
5.3.270.0030.04314.62
5.3.260.0030.04014.57
5.3.250.0030.03714.84
5.3.240.0000.06314.84
5.3.230.0070.06314.73
5.3.220.0000.04014.53
5.3.210.0100.04714.57
5.3.200.0100.04714.56
5.3.190.0030.07314.70
5.3.180.0100.03314.65
5.3.170.0030.06014.59
5.3.160.0000.03314.54
5.3.150.0100.03014.57
5.3.140.0070.03714.55
5.3.130.0070.06014.59
5.3.120.0070.03014.57
5.3.110.0030.03314.56
5.3.100.0030.05014.05
5.3.90.0000.03713.90
5.3.80.0030.03714.26
5.3.70.0070.02714.04
5.3.60.0130.06314.04
5.3.50.0100.03014.08
5.3.40.0070.03314.10
5.3.30.0030.04714.05
5.3.20.0070.07013.55
5.3.10.0030.07013.69
5.3.00.0030.03713.88
5.2.170.0030.02711.87
5.2.160.0000.05011.87
5.2.150.0000.03011.87
5.2.140.0000.05311.87
5.2.130.0000.06011.87
5.2.120.0030.04711.87
5.2.110.0000.03311.87
5.2.100.0030.02311.87
5.2.90.0030.02711.87
5.2.80.0070.05711.87
5.2.70.0070.03311.87
5.2.60.0100.04011.87
5.2.50.0030.04711.87
5.2.40.0000.03011.87
5.2.30.0000.03011.87
5.2.20.0070.04011.87
5.2.10.0100.04711.87
5.2.00.0000.03311.87
5.1.60.0030.03311.87
5.1.50.0030.02311.87
5.1.40.0030.02311.87
5.1.30.0070.03711.87
5.1.20.0070.02311.87
5.1.10.0030.02311.87
5.1.00.0000.03011.87
5.0.50.0070.03711.87
5.0.40.0070.04011.87
5.0.30.0000.03011.87
5.0.20.0000.04011.87
5.0.10.0000.04011.87
5.0.00.0000.04011.87
4.4.90.0070.00711.87
4.4.80.0030.01311.87
4.4.70.0000.02011.87
4.4.60.0030.01311.87
4.4.50.0000.01711.87
4.4.40.0000.02711.87
4.4.30.0000.01711.87
4.4.20.0000.02711.87
4.4.10.0030.02011.87
4.4.00.0030.04311.87
4.3.110.0030.01011.87
4.3.100.0030.02011.87
4.3.90.0070.03011.87
4.3.80.0000.03711.87
4.3.70.0000.01711.87
4.3.60.0000.01711.87
4.3.50.0000.01711.87
4.3.40.0030.02311.87
4.3.30.0000.02311.87
4.3.20.0030.03011.87
4.3.10.0000.01311.87
4.3.00.0070.02011.87

preferences:
45.95 ms | 401 KiB | 5 Q