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('A', 'test'), 'more', 'args'); forward_static_call( 'test', 'other', 'args'); } } B::test('ppp'); 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.60.0190.00318.07
8.3.50.0070.01021.88
8.3.40.0100.01018.67
8.3.30.0070.00719.05
8.3.20.0060.00320.25
8.3.10.0050.00321.92
8.3.00.0080.00022.37
8.2.180.0070.00716.50
8.2.170.0040.01122.96
8.2.160.0170.00020.99
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00417.75
8.2.110.0050.00520.98
8.2.100.0070.00719.64
8.2.90.0060.00319.22
8.2.80.0090.00017.97
8.2.70.0090.00017.50
8.2.60.0050.00218.05
8.2.50.0030.00718.07
8.2.40.0080.00018.09
8.2.30.0040.00418.05
8.2.20.0030.00517.59
8.2.10.0000.00717.66
8.2.00.0060.00617.66
8.1.280.0070.01025.92
8.1.270.0040.00422.20
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.78
8.1.230.0040.00722.63
8.1.220.0090.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.51
8.1.180.0000.00818.10
8.1.170.0000.00818.57
8.1.160.0040.00422.05
8.1.150.0070.00018.63
8.1.140.0090.00317.36
8.1.130.0070.00017.82
8.1.120.0000.00717.47
8.1.110.0000.00817.48
8.1.100.0000.00717.52
8.1.90.0000.00817.39
8.1.80.0070.00017.50
8.1.70.0000.00817.34
8.1.60.0000.00717.61
8.1.50.0000.00817.54
8.1.40.0030.00617.53
8.1.30.0000.00817.52
8.1.20.0040.00417.69
8.1.10.0000.00717.57
8.1.00.0000.00717.50
8.0.300.0090.00019.62
8.0.290.0040.00417.18
8.0.280.0070.00018.43
8.0.270.0040.00417.31
8.0.260.0070.00316.69
8.0.250.0000.00716.98
8.0.240.0060.00316.92
8.0.230.0030.00316.85
8.0.220.0070.00016.76
8.0.210.0050.00316.93
8.0.200.0020.00516.94
8.0.190.0000.00716.83
8.0.180.0040.00416.91
8.0.170.0080.00016.95
8.0.160.0040.00416.80
8.0.150.0040.00416.84
8.0.140.0030.00516.80
8.0.130.0000.00513.33
8.0.120.0040.00416.85
8.0.110.0040.00416.81
8.0.100.0000.00716.75
8.0.90.0040.00416.84
8.0.80.0060.01316.93
8.0.70.0000.00716.78
8.0.60.0030.00516.89
8.0.50.0040.00416.98
8.0.30.0160.00317.25
8.0.20.0090.00917.40
8.0.10.0000.00816.87
8.0.00.0110.00916.57
7.4.330.0050.00015.05
7.4.320.0030.00316.45
7.4.300.0000.00616.59
7.4.290.0000.00716.60
7.4.280.0060.00016.49
7.4.270.0000.00616.64
7.4.260.0030.00316.57
7.4.250.0070.00016.54
7.4.240.0060.00216.48
7.4.230.0000.00716.25
7.4.220.0160.00716.54
7.4.210.0040.01116.56
7.4.200.0050.00316.31
7.4.190.0040.00416.55
7.4.160.0040.01116.43
7.4.150.0170.01217.40
7.4.140.0080.01117.86
7.4.130.0050.01216.56
7.4.120.0080.01416.39
7.4.110.0110.00616.55
7.4.100.0110.00716.43
7.4.90.0130.00916.55
7.4.80.0000.02019.39
7.4.70.0000.01716.56
7.4.60.0060.00916.42
7.4.50.0040.00416.44
7.4.40.0040.00822.77
7.4.30.0120.00316.50
7.4.00.0120.00314.90
7.3.330.0000.00513.04
7.3.320.0000.00513.32
7.3.310.0070.00016.21
7.3.300.0070.00016.26
7.3.290.0030.01016.32
7.3.280.0110.00916.29
7.3.270.0110.01117.40
7.3.260.0110.01116.52
7.3.250.0080.01216.39
7.3.240.0090.01316.28
7.3.230.0120.00416.41
7.3.210.0120.00916.18
7.3.200.0110.00719.39
7.3.190.0100.00716.34
7.3.180.0060.01016.34
7.3.170.0130.00316.27
7.3.160.0100.00716.46
7.3.120.0030.01014.88
7.3.10.0040.01116.57
7.3.00.0020.01316.73
7.2.330.0030.01416.73
7.2.320.0130.00916.42
7.2.310.0090.00816.75
7.2.300.0130.01016.69
7.2.290.0130.00316.67
7.2.130.0040.01116.62
7.2.120.0050.00916.69
7.2.110.0040.00716.74
7.2.100.0100.00516.77
7.2.90.0060.00616.84
7.2.80.0070.00516.92
7.2.70.0060.00316.86
7.2.60.0050.01116.94
7.2.50.0070.00317.00
7.2.40.0060.00516.89
7.2.30.0070.00916.85
7.2.20.0020.01416.77
7.2.10.0080.00316.60
7.2.00.0050.00817.71
7.1.250.0030.00815.76
7.1.240.0070.00715.72
7.1.230.0030.00915.47
7.1.220.0110.00415.50
7.1.210.0060.00315.49
7.1.200.0040.00715.78
7.1.190.0090.00615.89
7.1.180.0060.00915.68
7.1.170.0120.00615.68
7.1.160.0030.00815.74
7.1.150.0080.00015.71
7.1.140.0000.00815.40
7.1.130.0070.00715.70
7.1.120.0040.00715.35
7.1.110.0100.00315.69
7.1.100.0020.01116.78
7.1.90.0000.00815.49
7.1.80.0000.00815.80
7.1.70.0040.00916.63
7.1.60.0070.01017.77
7.1.50.0080.01016.42
7.1.40.0030.00915.65
7.1.30.0030.01015.42
7.1.20.0070.00715.53
7.1.10.0060.00315.67
7.1.00.0100.03818.89
7.0.330.0180.00015.23
7.0.320.0040.00815.46
7.0.310.0100.00315.36
7.0.300.0140.00015.06
7.0.290.0040.00715.27
7.0.280.0030.00715.23
7.0.270.0050.00315.30
7.0.260.0070.00715.14
7.0.250.0080.00015.55
7.0.240.0030.00915.34
7.0.230.0040.01115.29
7.0.220.0040.00715.06
7.0.210.0000.00915.30
7.0.200.0060.00316.12
7.0.190.0110.00015.09
7.0.180.0080.00815.14
7.0.170.0050.00615.40
7.0.160.0000.01015.52
7.0.150.0040.00815.07
7.0.140.0050.03818.64
7.0.130.0090.00615.28
7.0.120.0030.00715.02
7.0.110.0070.00315.41
7.0.100.0070.03017.62
7.0.90.0060.02917.59
7.0.80.0050.03817.60
7.0.70.0140.02017.61
7.0.60.0030.04917.59
7.0.50.0050.03517.88
7.0.40.0070.04516.71
7.0.30.0090.03916.72
7.0.20.0030.04516.80
7.0.10.0020.04416.78
7.0.00.0050.04616.55
5.6.380.0130.00014.21
5.6.370.0070.00714.13
5.6.360.0030.01014.53
5.6.350.0030.00614.21
5.6.340.0040.01014.23
5.6.330.0000.01314.47
5.6.320.0070.01014.17
5.6.310.0060.00614.23
5.6.300.0130.00014.03
5.6.290.0080.00414.13
5.6.280.0040.04117.47
5.6.270.0100.00014.04
5.6.260.0030.00714.35
5.6.250.0020.05017.42
5.6.240.0080.04117.40
5.6.230.0080.04017.50
5.6.220.0110.03417.39
5.6.210.0050.03017.52
5.6.200.0070.03717.53
5.6.190.0080.04517.57
5.6.180.0080.02817.72
5.6.170.0050.04217.56
5.6.160.0090.02517.77
5.6.150.0110.04017.51
5.6.140.0070.04717.62
5.6.130.0060.04417.40
5.6.120.0070.02517.52
5.6.110.0070.02417.63
5.6.100.0060.02817.53
5.6.90.0070.02817.63
5.6.80.0070.04417.34
5.6.70.0070.04517.38
5.6.60.0050.04317.26
5.6.50.0070.04317.19
5.6.40.0030.04117.30
5.6.30.0090.04117.24
5.6.20.0030.03517.22
5.6.10.0150.03417.22
5.6.00.0070.04517.27
5.5.380.0050.04715.70
5.5.370.0150.03515.64
5.5.360.0070.04215.90
5.5.350.0110.04015.83
5.5.340.0110.03615.82
5.5.330.0080.04015.80
5.5.320.0020.03215.80
5.5.310.0080.03315.81
5.5.300.0100.02415.91
5.5.290.0080.03715.87
5.5.280.0070.03915.87
5.5.270.0040.04615.77
5.5.260.0100.02815.77
5.5.250.0120.03815.84
5.5.240.0080.03915.44
5.5.230.0020.03415.65
5.5.220.0030.04215.70
5.5.210.0050.02515.67
5.5.200.0050.04415.60
5.5.190.0060.04315.62
5.5.180.0030.03915.74
5.5.170.0040.00410.81
5.5.160.0060.03315.64
5.5.150.0110.03615.61
5.5.140.0060.04015.47
5.5.130.0040.02715.73
5.5.120.0080.03815.57
5.5.110.0070.02315.73
5.5.100.0040.02815.60
5.5.90.0120.02015.50
5.5.80.0100.03715.66
5.5.70.0070.02315.53
5.5.60.0100.03915.54
5.5.50.0110.03815.57
5.5.40.0030.03615.43
5.5.30.0050.04515.43
5.5.20.0080.04215.39
5.5.10.0080.02915.62
5.5.00.0060.04015.50
5.4.450.0080.04515.14
5.4.440.0090.03915.10
5.4.430.0060.03015.29
5.4.420.0100.03715.33
5.4.410.0050.04315.01
5.4.400.0120.03514.95
5.4.390.0060.03614.86
5.4.380.0070.04214.86
5.4.370.0050.04315.07
5.4.360.0070.04014.95
5.4.350.0050.04015.05
5.4.340.0050.04215.08
5.4.330.0070.00710.96
5.4.320.0080.03815.06
5.4.310.0050.04015.05
5.4.300.0080.04015.10
5.4.290.0100.03215.12
5.4.280.0050.02315.01
5.4.270.0040.02314.94
5.4.260.0100.03014.96
5.4.250.0110.03714.88
5.4.240.0070.03915.04
5.4.230.0080.04315.10
5.4.220.0070.04515.05
5.4.210.0120.04014.93
5.4.200.0100.04315.00
5.4.190.0050.04615.05
5.4.180.0070.03214.87
5.4.170.0080.04115.04
5.4.160.0080.04114.96
5.4.150.0100.04015.06
5.4.140.0060.03113.94
5.4.130.0060.04013.78
5.4.120.0070.03613.67
5.4.110.0050.03513.82
5.4.100.0080.03113.55
5.4.90.0070.03513.69
5.4.80.0060.03413.74
5.4.70.0130.03313.78
5.4.60.0030.03813.80
5.4.50.0030.04313.61
5.4.40.0050.03013.72
5.4.30.0080.03513.71
5.4.20.0030.02513.66
5.4.10.0080.03713.62
5.4.00.0070.03313.40
5.3.290.0050.02312.54
5.3.280.0050.04012.52
5.3.270.0050.03112.60
5.3.260.0060.03112.62
5.3.250.0140.03712.56
5.3.240.0060.02112.56
5.3.230.0100.04012.58
5.3.220.0050.02512.50
5.3.210.0090.02712.56
5.3.200.0090.03812.51
5.3.190.0080.02312.60
5.3.180.0050.02212.64
5.3.170.0100.03712.55
5.3.160.0060.03512.65
5.3.150.0070.03512.54
5.3.140.0030.03912.54
5.3.130.0070.04512.48
5.3.120.0030.04412.49
5.3.110.0070.03212.66
5.3.100.0070.03912.34
5.3.90.0020.02912.29
5.3.80.0050.03212.26
5.3.70.0030.04012.35
5.3.60.0100.02312.38
5.3.50.0050.02112.25
5.3.40.0050.03712.27
5.3.30.0070.02012.23
5.3.20.0030.04212.15
5.3.10.0060.03812.04
5.3.00.0030.02912.04
5.2.170.0050.03310.82
5.2.160.0070.01910.83
5.2.150.0030.03310.75
5.2.140.0060.02910.76
5.2.130.0040.03410.80
5.2.120.0050.03210.77
5.2.110.0050.03110.82
5.2.100.0030.02010.83
5.2.90.0080.02810.84
5.2.80.0030.03210.81
5.2.70.0060.02210.70
5.2.60.0040.03410.76
5.2.50.0000.02310.69
5.2.40.0070.01710.67
5.2.30.0070.03210.74
5.2.20.0070.02610.71
5.2.10.0040.03410.58
5.2.00.0040.03310.60
5.1.60.0020.02910.26
5.1.50.0050.02710.27
5.1.40.0030.02810.24
5.1.30.0050.02410.32
5.1.20.0030.02810.41
5.1.10.0030.03110.18
5.1.00.0030.01810.30
5.0.50.0030.0209.53
5.0.40.0030.0259.46
5.0.30.0050.0359.46
5.0.20.0040.0229.46
5.0.10.0020.0229.46
5.0.00.0060.0209.46
4.4.90.0030.0189.46
4.4.80.0030.0199.46
4.4.70.0020.0199.46
4.4.60.0050.0179.46
4.4.50.0020.0209.46
4.4.40.0030.0159.46
4.4.30.0000.0239.46
4.4.20.0040.0189.46
4.4.10.0050.0179.46
4.4.00.0000.0329.46
4.3.110.0020.0129.46
4.3.100.0020.0199.46
4.3.90.0030.0189.46
4.3.80.0000.0299.46
4.3.70.0030.0189.46
4.3.60.0000.0139.46
4.3.50.0090.0159.46
4.3.40.0020.0289.46
4.3.30.0020.0199.46
4.3.20.0020.0179.46
4.3.10.0020.0209.46
4.3.00.0000.0189.46

preferences:
42.96 ms | 401 KiB | 5 Q