3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const NAME = 'A'; public static function test() { $args = func_get_args(); echo static::NAME, " ".join(',', $args)." \n"; } } class B extends A { const NAME = 'B'; public static function test() { echo self::NAME, "\n"; forward_static_call_array(array('A', 'test'), array('more', 'args')); forward_static_call_array( 'test', array('other', 'args')); } } B::test('foo'); function test() { $args = func_get_args(); echo "C ".join(',', $args)." \n"; } ?>

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.70.0120.00316.75
8.3.60.0120.00416.63
8.3.50.0190.00521.98
8.3.40.0070.00718.61
8.3.30.0130.00318.79
8.3.20.0040.00420.34
8.3.10.0040.00418.90
8.3.00.0080.00019.25
8.2.190.0040.01816.63
8.2.180.0070.00725.92
8.2.170.0070.00718.91
8.2.160.0000.01422.96
8.2.150.0180.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00419.23
8.2.120.0080.00026.35
8.2.110.0060.00321.08
8.2.100.0080.00418.04
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0040.00418.10
8.2.40.0040.00420.34
8.2.30.0040.00420.62
8.2.20.0060.00317.74
8.2.10.0080.00017.96
8.2.00.0040.00417.99
8.1.280.0150.00625.92
8.1.270.0090.00623.68
8.1.260.0080.00028.09
8.1.250.0050.00228.09
8.1.240.0030.00622.42
8.1.230.0040.00719.14
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00917.00
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0070.00020.87
8.1.150.0040.00418.80
8.1.140.0000.00719.56
8.1.130.0030.00317.66
8.1.120.0040.00417.50
8.1.110.0040.00417.45
8.1.100.0050.00317.35
8.1.90.0070.00017.46
8.1.80.0000.00817.44
8.1.70.0030.00317.37
8.1.60.0040.00417.61
8.1.50.0030.00617.53
8.1.40.0080.00017.36
8.1.30.0030.00617.67
8.1.20.0030.00517.63
8.1.10.0040.00417.44
8.1.00.0080.00017.49
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0050.00218.39
8.0.270.0000.00817.16
8.0.260.0000.00617.26
8.0.250.0040.00416.98
8.0.240.0070.00017.01
8.0.230.0030.00316.87
8.0.220.0040.00416.84
8.0.210.0080.00016.86
8.0.200.0000.00616.98
8.0.190.0080.00016.84
8.0.180.0030.00316.90
8.0.170.0080.00016.81
8.0.160.0000.00716.96
8.0.150.0000.00816.82
8.0.140.0040.00316.90
8.0.130.0000.00613.27
8.0.120.0040.00416.76
8.0.110.0050.00316.82
8.0.100.0040.00416.68
8.0.90.0000.00716.80
8.0.80.0120.00416.89
8.0.70.0040.00416.75
8.0.60.0040.00416.92
8.0.50.0030.00417.00
8.0.30.0120.00517.22
8.0.20.0130.00617.40
8.0.10.0050.00216.93
8.0.00.0080.00916.78
7.4.330.0050.00015.08
7.4.320.0030.00616.50
7.4.300.0000.00616.48
7.4.290.0070.00016.51
7.4.280.0070.00016.50
7.4.270.0000.00616.52
7.4.260.0000.00816.59
7.4.250.0080.00016.57
7.4.240.0070.00016.41
7.4.230.0000.00716.68
7.4.220.0170.01016.46
7.4.210.0060.00916.50
7.4.200.0050.00316.53
7.4.160.0070.00716.36
7.4.150.0080.01117.40
7.4.140.0050.01517.86
7.4.130.0130.00916.46
7.4.120.0090.01016.54
7.4.110.0090.00916.70
7.4.100.0120.00616.63
7.4.90.0120.00616.38
7.4.80.0030.01319.39
7.4.70.0120.00616.48
7.4.60.0000.01716.28
7.4.50.0110.00416.44
7.4.40.0120.01016.70
7.4.30.0130.00916.25
7.4.00.0110.00414.83
7.3.330.0000.00613.24
7.3.320.0030.00313.33
7.3.310.0030.00316.16
7.3.300.0040.00416.24
7.3.290.0110.00716.31
7.3.280.0080.00816.29
7.3.270.0170.00617.40
7.3.260.0120.00916.29
7.3.250.0070.01416.32
7.3.240.0130.00516.27
7.3.230.0070.01116.48
7.3.210.0070.01016.46
7.3.200.0000.01616.21
7.3.190.0110.00616.60
7.3.180.0070.00716.32
7.3.170.0080.01216.55
7.3.160.0040.01316.23
7.3.120.0070.01114.93
7.3.110.0000.01414.48
7.3.100.0110.00414.72
7.3.90.0060.00614.73
7.3.80.0090.00314.88
7.3.70.0030.01014.82
7.3.60.0080.00514.54
7.3.50.0090.00914.41
7.3.40.0070.00314.75
7.3.30.0090.00614.66
7.3.20.0090.00316.80
7.3.10.0070.00416.33
7.3.00.0100.00616.82
7.2.330.0060.01216.42
7.2.320.0100.01316.63
7.2.310.0120.00916.50
7.2.300.0090.01316.68
7.2.290.0100.00716.65
7.2.240.0030.01015.07
7.2.230.0000.01115.19
7.2.220.0040.00815.00
7.2.210.0100.00715.02
7.2.200.0060.00915.08
7.2.190.0070.01115.00
7.2.180.0060.01215.03
7.2.170.0140.00314.75
7.2.160.0040.01414.84
7.2.150.0060.01016.51
7.2.140.0040.01416.79
7.2.130.0030.01016.84
7.2.120.0100.00317.08
7.2.110.0090.00916.90
7.2.100.0030.01216.60
7.2.90.0110.00716.71
7.2.80.0070.00916.97
7.2.70.0090.00617.03
7.2.60.0080.00716.92
7.2.50.0000.01216.95
7.2.40.0000.01716.89
7.2.30.0030.01216.89
7.2.20.0070.00617.05
7.2.10.0100.00317.14
7.2.00.0050.01018.23
7.1.330.0090.00615.69
7.1.320.0000.01415.81
7.1.310.0090.00315.82
7.1.300.0030.00615.61
7.1.290.0090.00615.60
7.1.280.0080.00815.58
7.1.270.0070.00715.74
7.1.260.0080.00815.73
7.1.250.0060.00915.48
7.1.200.0090.00615.73
7.1.100.0000.01018.10
7.1.70.0040.00917.13
7.1.60.0030.01017.25
7.1.50.0060.00617.00
7.1.40.0040.00716.62
7.1.30.0040.00716.64
7.1.20.0040.00716.58
7.1.10.0040.00416.55
7.1.00.0030.00816.92
7.0.200.0000.00816.85
7.0.190.0030.00516.73
7.0.180.0000.00716.32
7.0.170.0060.00316.14
7.0.160.0080.00016.32
7.0.150.0030.00616.34
7.0.140.0000.00816.27
7.0.130.0090.00016.32
7.0.120.0000.00816.41
7.0.110.0050.00516.13
7.0.100.0000.00916.12
7.0.90.0040.00716.27
7.0.80.0030.00516.38
7.0.70.0080.00016.38
7.0.60.0050.00316.23
7.0.50.0030.00616.45
7.0.40.0060.00314.62
7.0.30.0000.00714.62
7.0.20.0070.00014.71
7.0.10.0030.00314.62
7.0.00.0050.00514.62
5.6.300.0060.04220.88
5.6.290.0070.04020.93
5.6.280.0100.04820.92
5.6.270.0330.03720.89
5.6.260.0060.04521.00
5.6.250.0060.04221.04
5.6.240.0070.04720.84
5.6.230.0200.06020.80
5.6.220.0030.03920.95
5.6.210.0030.04220.62
5.6.200.0030.04420.82
5.6.190.0100.04020.99
5.6.180.0130.04620.98
5.6.170.0030.04321.00
5.6.160.0030.04320.93
5.6.150.0030.04021.00
5.6.140.0130.03220.82
5.6.130.0030.04420.93
5.6.120.0000.04620.95
5.6.110.0070.04020.82
5.6.100.0130.07920.82
5.6.90.0030.06620.98
5.6.80.0060.03620.25
5.6.70.0100.03220.24
5.6.60.0000.04920.34
5.6.50.0030.04320.32
5.6.40.0000.04520.23
5.6.30.0100.04120.32
5.6.20.0070.08520.19
5.6.10.0060.04120.18
5.6.00.0100.03420.18
5.5.380.0030.04317.45
5.5.370.0070.04017.57
5.5.360.0040.04017.41
5.5.350.0030.04117.57
5.5.340.0160.03418.09
5.5.330.0040.04318.00
5.5.320.0040.03918.06
5.5.310.0040.04318.11
5.5.300.0030.04118.08
5.5.290.0040.04718.04
5.5.280.0070.04018.00
5.5.270.0030.05217.99
5.5.260.0030.07818.08
5.5.250.0030.04517.55
5.5.240.0120.03317.45
5.5.230.0060.03817.22
5.5.220.0030.03817.11
5.5.210.0030.03817.52
5.5.200.0070.05017.38
5.5.190.0030.04017.05
5.5.180.0030.03917.44
5.5.160.0000.04817.52
5.5.150.0100.04117.37
5.5.140.0070.04017.43
5.5.130.0100.03517.44
5.5.120.0030.04117.05
5.5.110.0060.03517.18
5.5.100.0030.04517.36
5.5.90.0000.04017.11
5.5.80.0030.04116.99
5.5.70.0100.06217.24
5.5.60.0060.04517.24
5.5.50.0100.05417.00
5.5.40.0160.06917.30
5.5.30.0160.03317.30
5.5.20.0110.03717.30
5.5.10.0070.07317.24
5.5.00.0100.07017.23

preferences:
54.31 ms | 401 KiB | 5 Q