3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected function y() { echo 'Foo called' . PHP_EOL; var_dump( func_get_args()); } } class Bar extends Foo { public function __call($name, $args) { echo 'Bar called' . PHP_EOL; /** This works, but arg[0] is the name of the method called and [1] is the args call_user_func_array( 'parent::' . $name, func_get_args() ); */ forward_static_call( ['parent', $name], func_get_args()[1] ); } } $bar = (new Bar)->y(4,2);

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.0100.00316.88
8.3.50.0110.00821.21
8.3.40.0120.00318.79
8.3.30.0070.01319.09
8.3.20.0090.00020.22
8.3.10.0040.00421.89
8.3.00.0080.00019.25
8.2.180.0150.00718.54
8.2.170.0090.00618.96
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0090.00019.36
8.2.110.0070.00319.39
8.2.100.0000.01217.63
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0030.00518.07
8.2.40.0090.00018.28
8.2.30.0050.00218.05
8.2.20.0030.00617.78
8.2.10.0030.00518.13
8.2.00.0000.00817.73
8.1.280.0040.01125.92
8.1.270.0030.00620.38
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0000.00923.85
8.1.230.0090.00317.65
8.1.220.0030.00517.76
8.1.210.0030.00518.77
8.1.200.0000.01017.13
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0090.00020.50
8.1.160.0000.00822.06
8.1.150.0070.00318.97
8.1.140.0040.00417.45
8.1.130.0030.00317.71
8.1.120.0050.00217.46
8.1.110.0000.00717.53
8.1.100.0050.00317.45
8.1.90.0050.00317.32
8.1.80.0000.00717.46
8.1.70.0030.00317.45
8.1.60.0090.00317.59
8.1.50.0000.00817.50
8.1.40.0000.00717.55
8.1.30.0030.00517.60
8.1.20.0030.00517.61
8.1.10.0040.00417.55
8.1.00.0000.00817.49
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.43
8.0.270.0030.00317.26
8.0.260.0040.00417.25
8.0.250.0040.00416.89
8.0.240.0000.00716.98
8.0.230.0000.00717.05
8.0.220.0000.00716.90
8.0.210.0000.00716.91
8.0.200.0000.00616.94
8.0.190.0040.00416.92
8.0.180.0030.00316.92
8.0.170.0040.00416.95
8.0.160.0000.00716.97
8.0.150.0030.00516.88
8.0.140.0030.00716.81
8.0.130.0070.00013.27
8.0.120.0030.00516.78
8.0.110.0070.00016.87
8.0.100.0050.00216.89
8.0.90.0000.00816.72
8.0.80.0070.01016.80
8.0.70.0070.00016.78
8.0.60.0040.00416.95
8.0.50.0040.00416.72
8.0.30.0170.00817.04
8.0.20.0110.00817.40
8.0.10.0000.00716.87
8.0.00.0110.00816.71
7.4.330.0000.00715.03
7.4.320.0030.00316.55
7.4.300.0060.00016.42
7.4.290.0030.00616.43
7.4.280.0050.00216.55
7.4.270.0000.00716.52
7.4.260.0000.00816.42
7.4.250.0030.00516.42
7.4.240.0020.00616.53
7.4.230.0050.00216.49
7.4.220.0100.00716.54
7.4.210.0060.00716.56
7.4.200.0030.00316.39
7.4.160.0040.01116.53
7.4.150.0180.00017.40
7.4.140.0140.00917.86
7.4.130.0100.01316.48
7.4.120.0080.00816.69
7.4.110.0160.01016.63
7.4.100.0140.00316.55
7.4.90.0100.00716.37
7.4.80.0130.00419.39
7.4.70.0060.01516.47
7.4.60.0160.00016.64
7.4.50.0000.00816.41
7.4.40.0090.00916.61
7.4.30.0100.00716.54
7.4.00.0000.01515.02
7.3.330.0000.00613.28
7.3.320.0110.00413.37
7.3.310.0030.00616.21
7.3.300.0030.00316.31
7.3.290.0030.00316.28
7.3.280.0140.00216.33
7.3.270.0100.00717.40
7.3.260.0210.00416.59
7.3.250.0090.01216.47
7.3.240.0070.01116.47
7.3.230.0120.00616.39
7.3.210.0160.01016.43
7.3.200.0100.00719.39
7.3.190.0080.00816.27
7.3.180.0080.00816.58
7.3.170.0070.01016.28
7.3.160.0120.00616.44
7.3.10.0060.00616.66
7.3.00.0110.00316.68
7.2.330.0060.01116.73
7.2.320.0090.01516.36
7.2.310.0090.00916.76
7.2.300.0030.01916.77
7.2.290.0030.01916.79
7.2.130.0100.00616.96
7.2.120.0080.00616.75
7.2.110.0070.00616.82
7.2.100.0040.01116.89
7.2.90.0050.00816.70
7.2.80.0020.01416.70
7.2.70.0070.00816.93
7.2.60.0080.00517.00
7.2.50.0080.00717.09
7.2.40.0080.00317.00
7.2.30.0040.00616.84
7.2.20.0030.01016.72
7.2.10.0050.00716.88
7.2.00.0070.00517.03
7.1.250.0080.00315.77
7.1.240.0050.00515.61
7.1.230.0070.00315.89
7.1.220.0060.00315.79
7.1.210.0040.00815.56
7.1.200.0040.01115.80
7.1.190.0040.01115.86
7.1.180.0120.00315.51
7.1.170.0030.01015.90
7.1.160.0000.01415.79
7.1.150.0040.00415.75
7.1.140.0090.00615.64
7.1.130.0030.00615.89
7.1.120.0120.00415.57
7.1.110.0000.00915.74
7.1.100.0080.00315.91
7.1.90.0040.00815.77
7.1.80.0000.01515.78
7.1.70.0060.00316.35
7.1.60.0080.01017.50
7.1.50.0050.01416.34
7.1.40.0030.00615.78
7.1.30.0060.00615.55
7.1.20.0070.00715.69
7.1.10.0040.00715.54
7.1.00.0060.03819.10
7.0.320.0060.00915.54
7.0.310.0090.00015.31
7.0.300.0040.01115.15
7.0.290.0070.00715.43
7.0.280.0100.00615.27
7.0.270.0040.01115.12
7.0.260.0100.00315.35
7.0.250.0030.01215.53
7.0.240.0070.00715.12
7.0.230.0000.01215.41
7.0.220.0060.00615.25
7.0.210.0000.01115.49
7.0.200.0060.00814.98
7.0.190.0060.00615.49
7.0.180.0040.00815.57
7.0.170.0060.00615.43
7.0.160.0080.00615.23
7.0.150.0070.00315.49
7.0.140.0050.04618.72
7.0.130.0070.00315.39
7.0.120.0040.00415.52
7.0.110.0040.00415.56
7.0.100.0040.00815.37
7.0.90.0130.00015.20
7.0.80.0080.00315.46
7.0.70.0060.00915.30
7.0.60.0080.04117.60
7.0.50.0010.03116.60
7.0.40.0050.02316.89
7.0.30.0180.03916.87
7.0.20.0230.03516.79
7.0.10.0120.02616.78
7.0.00.0130.03816.76
5.6.380.0080.00014.41
5.6.370.0070.00614.45
5.6.360.0090.00014.35
5.6.350.0090.00314.59
5.6.340.0060.00714.38
5.6.330.0060.00314.32
5.6.320.0030.01014.57
5.6.310.0060.00614.65
5.6.300.0060.00614.31
5.6.290.0030.00614.42
5.6.280.0100.03517.75
5.6.270.0070.00714.24
5.6.260.0130.00014.22
5.6.250.0050.00514.40
5.6.240.0030.01014.31
5.6.230.0070.00714.21
5.6.220.0120.00314.30
5.6.210.0100.04317.44
5.6.200.0080.02516.30
5.6.190.0040.02617.54
5.6.180.0210.02017.46
5.6.170.0130.04117.31
5.6.160.0080.03117.37
5.6.150.0050.02216.25
5.6.140.0080.02116.39
5.6.130.0030.04716.27
5.6.120.0070.02717.68
5.6.110.0030.05217.70
5.6.100.0080.03917.76
5.6.90.0090.04317.84
5.6.80.0060.03417.29
5.6.70.0100.02517.22
5.6.60.0060.00314.06
5.6.50.0000.00814.39
5.6.40.0040.00414.26
5.6.30.0060.00314.36
5.6.20.0060.00614.27
5.6.10.0070.00714.35
5.6.00.0030.00914.32
5.5.380.0120.00311.07
5.5.370.0030.01011.39
5.5.360.0060.00711.07
5.5.350.0150.03815.76
5.5.340.0060.03214.57
5.5.330.0080.04615.78
5.5.320.0200.03215.95
5.5.310.0180.03015.91
5.5.300.0090.02914.77
5.5.290.0050.04714.73
5.5.280.0090.04016.04
5.5.270.0050.02316.20
5.5.260.0100.03816.05
5.5.250.0100.04016.00
5.5.240.0040.03015.61
5.5.230.0040.00911.38
5.5.220.0110.00011.36
5.5.210.0040.00811.07
5.5.200.0110.00411.36
5.5.190.0040.01211.23
5.5.180.0080.00511.12
5.5.170.0150.00414.08
5.5.160.0040.00411.07
5.5.150.0080.00811.07
5.5.140.0120.00311.07
5.5.130.0140.00011.07
5.5.120.0080.00511.43
5.5.110.0000.00811.41
5.5.100.0090.00511.23
5.5.90.0120.00511.09
5.5.80.0140.00011.07
5.5.70.0120.00311.23
5.5.60.0050.00811.08
5.5.50.0110.00411.07
5.5.40.0090.00411.07
5.5.30.0080.00011.32
5.5.20.0120.00211.11
5.5.10.0080.00411.07
5.5.00.0120.00011.20
5.4.450.0250.04015.21
5.4.440.0120.04215.42
5.4.430.0160.03715.41
5.4.420.0240.02315.37
5.4.410.0160.03515.06
5.4.400.0150.02714.96
5.4.390.0070.03014.93
5.4.380.0150.02714.90
5.4.370.0240.02414.83
5.4.360.0200.02714.91
5.4.350.0230.02714.93
5.4.340.0240.02814.78
5.4.330.0130.00011.07
5.4.320.0210.03014.82
5.4.310.0190.03015.00
5.4.300.0240.02314.83
5.4.290.0250.02714.81
5.4.280.0250.03014.92
5.4.270.0140.03414.77
5.4.260.0240.02814.91
5.4.250.0230.02714.95
5.4.240.0240.02514.91
5.4.230.0180.03214.95
5.4.220.0220.02514.83
5.4.210.0200.02714.97
5.4.200.0170.02913.88
5.4.190.0100.03714.96
5.4.180.0180.03314.87
5.4.170.0220.03014.90
5.4.160.0230.03014.84
5.4.150.0210.02814.90
5.4.140.0240.02613.76
5.4.130.0260.02513.86
5.4.120.0200.02813.72
5.4.110.0210.03913.76
5.4.100.0190.02713.71
5.4.90.0230.02713.73
5.4.80.0170.03213.83
5.4.70.0210.03113.63
5.4.60.0190.02713.67
5.4.50.0230.04013.78
5.4.40.0170.03013.60
5.4.30.0220.02713.65
5.4.20.0160.03313.73
5.4.10.0140.02813.66
5.4.00.0240.02813.39
5.3.290.0140.03712.89
5.3.280.0170.03212.83
5.3.270.0220.02512.84
5.3.260.0180.02812.91
5.3.250.0320.03412.86
5.3.240.0390.02712.86
5.3.230.0180.03012.86
5.3.220.0270.03112.88
5.3.210.0230.02512.81
5.3.200.0160.03112.85
5.3.190.0200.02812.91
5.3.180.0230.02812.84
5.3.170.0160.03312.87
5.3.160.0140.03112.90
5.3.150.0200.02812.84
5.3.140.0140.03312.89
5.3.130.0240.02912.92
5.3.120.0260.02312.82
5.3.110.0240.03012.88
5.3.100.0200.04012.67
5.3.90.0290.03112.55
5.3.80.0210.02912.63
5.3.70.0230.02812.55
5.3.60.0220.02712.53
5.3.50.0270.02212.54
5.3.40.0210.02812.53
5.3.30.0150.03412.60
5.3.20.0200.02712.38
5.3.10.0240.03012.38
5.3.00.0170.03012.41
5.2.170.0160.02711.14
5.2.160.0160.02711.13
5.2.150.0170.02611.22
5.2.140.0200.02011.10
5.2.130.0150.02211.14
5.2.120.0170.02511.10
5.2.110.0150.02511.20
5.2.100.0160.02911.11
5.2.90.0140.02311.12
5.2.80.0140.02711.13
5.2.70.0200.02411.13
5.2.60.0210.02711.13
5.2.50.0120.02711.10
5.2.40.0120.02411.10
5.2.30.0170.01911.02
5.2.20.0090.02611.11
5.2.10.0200.02411.00
5.2.00.0140.02111.01
5.1.60.0190.01710.56
5.1.50.0220.02210.64
5.1.40.0120.02710.54
5.1.30.0110.02510.76
5.1.20.0140.02010.74
5.1.10.0110.02310.58
5.1.00.0120.02610.63
5.0.50.0090.0219.83
5.0.40.0110.0179.73
5.0.30.0120.0309.66
5.0.20.0110.0189.69
5.0.10.0080.0189.69
5.0.00.0070.0279.64
4.4.90.0080.0128.48
4.4.80.0100.0188.51
4.4.70.0120.0158.47
4.4.60.0070.0198.50
4.4.50.0080.0188.50
4.4.40.0050.0258.49
4.4.30.0100.0178.48
4.4.20.0060.0198.52
4.4.10.0080.0198.50
4.4.00.0110.0238.50
4.3.110.0030.0178.45
4.3.100.0080.0118.44
4.3.90.0060.0128.43
4.3.80.0090.0178.43
4.3.70.0070.0138.45
4.3.60.0050.0138.43
4.3.50.0050.0168.43
4.3.40.0090.0188.42
4.3.30.0030.0137.89
4.3.20.0050.0147.82
4.3.10.0020.0157.82
4.3.00.0060.0128.98

preferences:
52.96 ms | 404 KiB | 6 Q