3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function xx(int $a, float $b) { print_r(func_get_args()); } } class B extends A { public function xx(int $a, float $b) { throw new Error('Not allowed'); } } $a = new A(); $a->xx(1, 2); $b = new B(); $b->xx(1, 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.4.120.0050.00420.32
8.4.110.0110.00922.33
8.4.100.0120.00818.10
8.4.90.0100.01020.70
8.4.80.0080.00121.50
8.4.70.0080.00818.18
8.4.60.0150.00519.53
8.4.50.0060.00918.84
8.4.40.0090.01017.99
8.4.30.0160.00318.68
8.4.20.0110.01118.05
8.4.10.0130.00619.50
8.3.250.0040.00418.89
8.3.240.0130.00716.86
8.3.230.0140.00516.38
8.3.220.0130.00517.07
8.3.210.0140.00416.75
8.3.200.0120.00716.65
8.3.190.0130.00616.76
8.3.180.0030.00518.68
8.3.170.0110.00718.95
8.3.160.0080.00818.39
8.3.150.0040.01516.85
8.3.140.0040.00416.61
8.3.130.0160.00316.70
8.3.120.0050.00319.08
8.3.110.0040.00416.64
8.3.100.0070.00418.43
8.3.90.0030.00626.77
8.3.80.0090.00019.36
8.3.70.0140.00018.43
8.3.60.0070.01716.63
8.3.50.0190.00623.67
8.3.40.0040.01421.84
8.3.30.0110.00418.79
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.290.0040.00420.48
8.2.280.0060.00418.29
8.2.270.0100.01016.82
8.2.260.0000.00817.15
8.2.250.0110.00018.35
8.2.240.0040.00416.70
8.2.230.0040.00420.94
8.2.220.0110.00024.06
8.2.210.0080.00326.77
8.2.200.0030.00618.88
8.2.190.0070.01418.34
8.2.180.0100.01025.92
8.2.170.0130.00318.93
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00721.12
8.2.110.0070.01022.26
8.2.100.0040.00817.91
8.2.90.0030.00717.84
8.2.80.0030.00620.58
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0080.00018.28
8.2.30.0030.00718.06
8.2.20.0070.00017.98
8.2.10.0080.00019.24
8.2.00.0060.00319.25
8.1.330.0050.00422.07
8.1.320.0140.01016.41
8.1.310.0000.00816.67
8.1.300.0040.00418.24
8.1.290.0030.00630.84
8.1.280.0110.00325.92
8.1.270.0090.00022.08
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0060.00622.77
8.1.220.0000.00817.79
8.1.210.0050.00319.10
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0060.00318.42
8.1.160.0040.00418.87
8.1.150.0040.00418.75
8.1.140.0050.00218.88
8.1.130.0070.00017.36
8.1.120.0080.00017.45
8.1.110.0030.00517.38
8.1.100.0000.00717.36
8.1.90.0050.00317.50
8.1.80.0000.00817.44
8.1.70.0030.00317.36
8.1.60.0000.00917.48
8.1.50.0040.00417.52
8.1.40.0000.00817.40
8.1.30.0050.00317.60
8.1.20.0040.00417.52
8.1.10.0000.00817.54
8.1.00.0090.00017.51
8.0.300.0000.00720.12
8.0.290.0070.00316.58
8.0.280.0000.00718.36
8.0.270.0030.00318.07
8.0.260.0000.00716.75
8.0.250.0040.00417.04
8.0.240.0000.00716.91
8.0.230.0070.00016.91
8.0.220.0070.00016.89
8.0.210.0030.00316.96
8.0.200.0000.00717.05
8.0.190.0050.00317.02
8.0.180.0040.00417.01
8.0.170.0040.00416.99
8.0.160.0060.00316.97
8.0.150.0070.00016.91
8.0.140.0030.00716.93
8.0.130.0000.00513.35
8.0.120.0000.00816.88
8.0.110.0040.00417.01
8.0.100.0040.00416.95
8.0.90.0040.00416.91
8.0.80.0110.00516.93
8.0.70.0050.00316.76
8.0.60.0030.00516.79
8.0.50.0080.00016.82
8.0.30.0070.01017.39
8.0.20.0170.00517.06
8.0.10.0000.00817.19
8.0.00.0100.01016.72
7.4.330.0000.00516.67
7.4.320.0070.00016.57
7.4.300.0000.00616.43
7.4.290.0060.00316.47
7.4.280.0040.00416.49
7.4.270.0080.00016.55
7.4.260.0030.00313.27
7.4.250.0000.01016.52
7.4.240.0070.00016.52
7.4.230.0000.00716.61
7.4.220.0050.00216.48
7.4.210.0050.01216.57
7.4.200.0030.00416.50
7.4.130.0140.00616.51
7.4.120.0150.00716.55
7.4.110.0240.01216.44
7.4.100.0260.01016.52
7.4.90.0290.00916.65
7.4.80.0280.00316.54
7.4.70.0240.00716.53
7.4.60.0280.00316.65
7.4.50.0280.00616.26
7.4.40.0220.00816.57
7.4.30.0230.01616.43
7.4.20.0220.00916.67
7.4.10.0220.00716.52
7.4.00.0100.01116.76
7.3.330.0000.00916.40
7.3.320.0050.00013.19
7.3.310.0030.00316.41
7.3.300.0000.00616.27
7.3.290.0080.00816.38
7.3.260.0130.00416.57
7.3.240.0260.01216.48
7.3.230.0270.00816.46
7.3.220.0240.01016.47
7.3.210.0260.00916.63
7.3.200.0240.01116.53
7.3.190.0230.00916.50
7.3.180.0170.01716.52
7.3.170.0250.00816.36
7.3.160.0260.00716.43
7.3.150.0290.00316.27
7.3.140.0320.00016.34
7.3.130.0300.00616.34
7.3.120.0140.01716.39
7.3.110.0320.00016.59
7.3.100.0250.00716.40
7.3.90.0260.00816.36
7.3.80.0200.01116.42
7.3.70.0230.00916.43
7.3.60.0250.00516.50
7.3.50.0250.00616.55
7.3.40.0280.00416.29
7.3.30.0270.00316.31
7.3.20.0260.00716.29
7.3.10.0240.00716.43
7.3.00.0260.00816.37
7.2.340.0300.00316.49
7.2.330.0220.01116.74
7.2.320.0330.00616.70
7.2.310.0250.00716.72
7.2.300.0210.01216.28
7.2.290.0270.00716.70
7.2.280.0250.00616.72
7.2.270.0240.00716.77
7.2.260.0170.01316.67
7.2.250.0270.00516.65
7.2.240.0240.00816.58
7.2.230.0270.00616.32
7.2.220.0240.01016.64
7.2.210.0250.01016.72
7.2.200.0310.00616.52
7.2.190.0250.01316.61
7.2.180.0250.00616.60
7.2.170.0160.01716.47
7.2.160.0150.01516.46
7.2.150.0200.01216.61
7.2.140.0200.01616.66
7.2.130.0260.00716.55
7.2.120.0330.00616.58
7.2.110.0230.01116.63
7.2.100.0160.01616.46
7.2.90.0220.00716.48
7.2.80.0190.00316.38
7.2.70.0170.00316.32
7.2.60.0360.01316.33
7.2.50.0150.00916.56
7.2.40.0160.01016.47
7.2.30.0230.00016.48
7.2.20.0040.01816.44
7.2.10.0140.00816.29
7.2.00.0140.01116.13

preferences:
19.34 ms | 403 KiB | 5 Q