3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo( $foo ) { var_dump( func_get_args() ); } } class B extends A { public function foo( $foo ) { $args = func_get_args(); call_user_func_array( 'parent::foo', $args ); } } $b = new B(); $b->foo( 'a', 'b', 'c' );

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.0040.01116.75
8.3.50.0120.00322.81
8.3.40.0120.00318.72
8.3.30.0160.00018.84
8.3.20.0040.00421.60
8.3.10.0050.00221.73
8.3.00.0040.00419.79
8.2.180.0160.00316.75
8.2.170.0070.01322.96
8.2.160.0070.01420.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0080.00026.35
8.2.110.0000.00920.35
8.2.100.0040.00818.03
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0000.00818.05
8.2.50.0060.00318.10
8.2.40.0040.00422.27
8.2.30.0050.00320.97
8.2.20.0050.00217.63
8.2.10.0050.00318.11
8.2.00.0000.00817.98
8.1.280.0060.00925.92
8.1.270.0000.01523.73
8.1.260.0080.00028.09
8.1.250.0040.01128.09
8.1.240.0090.00022.19
8.1.230.0120.00017.64
8.1.220.0030.00517.77
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0060.00318.70
8.1.160.0000.00722.14
8.1.150.0080.00020.82
8.1.140.0070.00319.59
8.1.130.0030.00317.43
8.1.120.0000.00717.45
8.1.110.0050.00317.45
8.1.100.0050.00217.41
8.1.90.0070.00017.44
8.1.80.0030.00517.38
8.1.70.0000.00817.43
8.1.60.0040.00417.57
8.1.50.0040.00417.39
8.1.40.0000.00817.46
8.1.30.0030.00517.63
8.1.20.0000.00917.64
8.1.10.0040.00417.52
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.34
8.0.270.0030.00317.18
8.0.260.0030.00316.88
8.0.250.0050.00216.99
8.0.240.0040.00416.96
8.0.230.0050.00316.98
8.0.220.0040.00416.91
8.0.210.0030.00316.89
8.0.200.0050.00216.93
8.0.190.0040.00316.97
8.0.180.0000.00716.95
8.0.170.0080.00016.89
8.0.160.0030.00316.95
8.0.150.0080.00016.82
8.0.140.0060.00316.73
8.0.130.0030.00313.34
8.0.120.0050.00316.73
8.0.110.0000.00816.82
8.0.100.0050.00216.92
8.0.90.0030.00516.82
8.0.80.0090.01316.93
8.0.70.0000.00716.95
8.0.60.0070.00016.93
8.0.50.0070.00016.93
8.0.30.0040.01117.01
8.0.20.0120.00917.40
8.0.10.0040.00417.03
8.0.00.0100.00616.99
7.4.330.0020.00215.20
7.4.320.0030.00316.42
7.4.300.0000.00616.56
7.4.290.0000.00716.50
7.4.280.0030.00316.52
7.4.270.0000.00716.41
7.4.260.0070.00016.40
7.4.250.0040.00416.55
7.4.240.0000.00716.36
7.4.230.0030.00516.69
7.4.220.0130.01016.56
7.4.210.0150.00016.37
7.4.200.0030.00316.34
7.4.160.0120.00416.45
7.4.150.0080.01617.40
7.4.140.0150.00717.86
7.4.130.0090.00716.61
7.4.120.0120.00416.42
7.4.110.0090.00916.55
7.4.100.0130.00316.54
7.4.90.0110.00716.54
7.4.80.0090.01519.39
7.4.70.0110.01016.48
7.4.60.0120.00616.39
7.4.50.0000.01416.46
7.4.40.0090.01116.36
7.4.30.0100.00716.43
7.4.00.0060.00614.73
7.3.330.0060.00013.21
7.3.320.0050.00013.02
7.3.310.0000.00716.11
7.3.300.0000.00716.09
7.3.290.0030.01416.25
7.3.280.0090.00916.21
7.3.270.0100.00717.40
7.3.260.0060.01316.31
7.3.250.0130.00816.29
7.3.240.0070.01016.48
7.3.230.0090.00916.39
7.3.210.0130.01016.25
7.3.200.0110.00916.36
7.3.190.0130.00316.40
7.3.180.0110.00616.48
7.3.170.0080.00816.14
7.3.160.0080.01416.19
7.2.330.0110.00616.26
7.2.320.0140.01016.70
7.2.310.0130.01016.37
7.2.300.0080.00816.73
7.2.290.0100.00716.40
7.2.60.0230.00016.69
7.2.00.0030.01319.10
7.1.200.0060.00915.72
7.1.70.0030.00317.22
7.1.60.0040.00719.75
7.1.00.0030.07322.35
7.0.200.0030.00516.21
7.0.90.0400.05319.91
7.0.80.0370.05020.07
7.0.70.0500.06320.02
7.0.60.0300.05019.98
7.0.50.0230.06020.42
7.0.40.0370.05320.44
7.0.30.0330.05720.43
7.0.20.0400.05720.28
7.0.10.0370.06320.33
7.0.00.0230.06020.30
5.6.240.0070.07320.65
5.6.230.0130.06720.70
5.6.220.0130.07720.77
5.6.210.0130.05720.73
5.6.200.0170.05321.10
5.6.190.0130.05321.09
5.6.180.0270.04021.18
5.6.170.0130.05721.09
5.6.160.0070.06021.18
5.6.150.0000.06721.00
5.6.140.0200.04721.06
5.6.130.0070.06321.00
5.6.120.0230.05021.02
5.6.110.0070.06721.12
5.6.100.0030.06321.06
5.6.90.0170.05721.15
5.6.80.0070.05720.46
5.6.70.0100.05720.56
5.6.60.0170.04320.48
5.6.50.0070.05720.48
5.6.40.0130.05020.54
5.6.30.0170.04720.49
5.6.20.0100.05020.44
5.6.10.0000.06020.41
5.6.00.0100.05720.41
5.5.380.0200.07320.50
5.5.370.0070.06320.56
5.5.360.0070.06320.46
5.5.350.0170.05320.47
5.5.340.0100.06020.93
5.5.330.0100.05720.94
5.5.320.0130.05020.87
5.5.310.0070.06320.96
5.5.300.0170.05020.70
5.5.290.0130.05720.98
5.5.280.0300.04020.97
5.5.270.0070.06020.88
5.5.260.0130.05720.88
5.5.250.0200.06020.59
5.5.240.0070.05720.24
5.5.230.0200.05720.30
5.5.220.0100.05720.32
5.5.210.0130.06020.15
5.5.200.0070.06020.32
5.5.190.0070.06020.29
5.5.180.0070.06020.30
5.5.160.0230.06020.06
5.5.150.0100.07020.27
5.5.140.0100.06320.05
5.5.130.0200.04320.21
5.5.120.0030.07020.05
5.5.110.0100.05320.18
5.5.100.0200.07020.20
5.5.90.0230.05720.14
5.5.80.0100.06320.02
5.5.70.0070.06020.21
5.5.60.0200.04320.01
5.5.50.0170.05720.18
5.5.40.0030.06020.06
5.5.30.0170.04720.12
5.5.20.0130.06019.99
5.5.10.0070.05720.10
5.5.00.0130.05320.14
5.4.450.0070.05719.38
5.4.440.0100.05719.49
5.4.430.0170.05019.52
5.4.420.0070.06019.46
5.4.410.0030.06019.13
5.4.400.0070.05718.94
5.4.390.0030.05719.18
5.4.380.0170.04719.16
5.4.370.0130.04719.25
5.4.360.0170.06018.95
5.4.350.0030.05719.19
5.4.340.0230.04019.03
5.4.320.0200.06319.04
5.4.310.0200.06319.06
5.4.300.0130.04718.94
5.4.290.0130.04719.04
5.4.280.0170.04718.90
5.4.270.0030.05719.16
5.4.260.0170.07019.13
5.4.250.0100.06719.08
5.4.240.0170.06019.09
5.4.230.0100.06319.13
5.4.220.0170.05319.08
5.4.210.0130.04719.13
5.4.200.0200.05719.19
5.4.190.0130.05019.14
5.4.180.0130.04719.01
5.4.170.0070.05319.09
5.4.160.0070.05319.02
5.4.150.0230.03719.16
5.4.140.0100.05016.38
5.4.130.0130.06316.52
5.4.120.0070.05016.69
5.4.110.0070.05016.38
5.4.100.0070.06016.64
5.4.90.0070.05316.59
5.4.80.0130.06016.47
5.4.70.0100.06716.57
5.4.60.0200.05716.53
5.4.50.0170.06316.39
5.4.40.0100.07316.57
5.4.30.0030.05316.54
5.4.20.0070.05316.43
5.4.10.0070.05316.29
5.4.00.0130.04316.08
5.3.290.0130.05314.69
5.3.280.0170.04314.63
5.3.270.0070.05714.59
5.3.260.0100.05714.74
5.3.250.0030.05714.75
5.3.240.0130.04314.60
5.3.230.0100.06714.59
5.3.220.0100.04714.67
5.3.210.0130.05014.56
5.3.200.0100.04714.54
5.3.190.0070.07014.60
5.3.180.0070.05314.70
5.3.170.0130.06314.56
5.3.160.0070.07014.57
5.3.150.0030.06714.57
5.3.140.0070.06714.70
5.3.130.0130.04714.55
5.3.120.0000.06014.42
5.3.110.0130.06714.52
5.3.100.0070.05014.19
5.3.90.0070.06314.02
5.3.80.0130.06014.03
5.3.70.0170.05314.02
5.3.60.0170.06313.95
5.3.50.0100.05313.98
5.3.40.0070.05013.94
5.3.30.0070.06713.85
5.3.20.0200.05013.56
5.3.10.0130.06013.68
5.3.00.0070.05313.75
5.2.170.0100.04511.14
5.2.160.0030.04311.14
5.2.150.0070.04011.03
5.2.140.0030.06311.13
5.2.130.0130.03311.14
5.2.120.0130.03711.16
5.2.110.0000.04711.08
5.2.100.0100.03711.10
5.2.90.0130.03311.21
5.2.80.0200.04311.09
5.2.70.0030.06011.10
5.2.60.0100.05010.93
5.2.50.0000.06011.04
5.2.40.0130.04711.00
5.2.30.0100.05310.96
5.2.20.0070.05011.08
5.2.10.0070.04310.79
5.2.00.0000.05010.66
5.1.60.0030.05010.01
5.1.50.0100.04010.07
5.1.40.0100.0409.96
5.1.30.0100.04010.46
5.1.20.0070.03710.46
5.1.10.0100.0309.93
5.1.00.0200.0309.92
5.0.50.0070.0278.54
5.0.40.0070.0238.41
5.0.30.0030.0438.22
5.0.20.0070.0338.20
5.0.10.0030.0278.21
5.0.00.0130.0508.19
4.4.90.0030.0305.94
4.4.80.0130.0175.80
4.4.70.0030.0275.83
4.4.60.0000.0275.84
4.4.50.0070.0205.89
4.4.40.0000.0435.80
4.4.30.0100.0235.88
4.4.20.0000.0275.89
4.4.10.0000.0275.97
4.4.00.0030.0405.86
4.3.110.0030.0205.76
4.3.100.0030.0205.76
4.3.90.0000.0205.70
4.3.80.0000.0435.79
4.3.70.0000.0235.75
4.3.60.0030.0205.73
4.3.50.0000.0275.72
4.3.40.0000.0375.65
4.3.30.0000.0235.29
4.3.20.0030.0205.29
4.3.10.0000.0235.31
4.3.00.0000.0275.31

preferences:
37.39 ms | 401 KiB | 5 Q