3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pass { public function test($a, $b = 'test') { } } class PassToo extends Pass { public function test($a, $b = 'test', $c = null) { } } class Fail extends Pass { public function test($a, $b) { } } class FailToo extends Pass { public function test($a, $b = 'test', $c) { } } (new Pass)->test(1, 2); (new PassToo)->test(1, 2); (new Fail)->test(1, 2); (new FailToo)->test(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.3.60.0040.01116.63
8.3.50.0000.01516.48
8.3.40.0070.01018.47
8.3.30.0040.01118.68
8.3.20.0040.00420.30
8.3.10.0080.00023.67
8.3.00.0050.00523.49
8.2.180.0070.00718.01
8.2.170.0060.00922.96
8.2.160.0100.00320.53
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.52
8.2.120.0070.00026.35
8.2.110.0070.00321.17
8.2.100.0080.00417.80
8.2.90.0030.00518.96
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0050.00517.80
8.2.50.0030.00618.07
8.2.40.0030.00620.66
8.2.30.0070.00019.18
8.2.20.0070.00017.55
8.2.10.0000.00717.75
8.2.00.0000.00718.03
8.1.280.0070.01025.92
8.1.270.0040.00423.97
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.28
8.1.230.0030.00718.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00316.88
8.1.190.0030.00516.98
8.1.180.0000.00718.10
8.1.170.0040.00418.58
8.1.160.0000.00720.59
8.1.150.0050.00318.79
8.1.140.0000.00919.32
8.1.130.0000.00717.48
8.1.120.0040.00417.34
8.1.110.0080.00017.20
8.1.100.0050.00217.36
8.1.90.0040.00417.32
8.1.80.0000.00817.36
8.1.70.0070.00017.33
8.1.60.0000.00717.48
8.1.50.0000.00817.29
8.1.40.0040.00417.30
8.1.30.0080.00017.58
8.1.20.0000.00717.57
8.1.10.0000.00817.43
8.1.00.0000.00817.14
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0050.00317.23
8.0.260.0030.00317.08
8.0.250.0080.00016.80
8.0.240.0030.00516.90
8.0.230.0080.00016.85
8.0.220.0040.00416.86
8.0.210.0040.00416.86
8.0.200.0030.00316.92
8.0.190.0100.00016.91
8.0.180.0000.00716.83
8.0.170.0000.00716.84
8.0.160.0040.00416.85
8.0.150.0030.00316.81
8.0.140.0030.00316.79
8.0.130.0030.00313.34
8.0.120.0040.00416.80
8.0.110.0040.00416.84
8.0.100.0030.00516.76
8.0.90.0020.00516.89
8.0.80.0030.01616.77
8.0.70.0080.00016.86
8.0.60.0000.00716.89
8.0.50.0040.00416.71
8.0.30.0090.00816.96
8.0.20.0100.01117.40
8.0.10.0070.00016.82
8.0.00.0140.00616.58
7.4.330.0030.00316.71
7.4.320.0000.00616.39
7.4.300.0060.00016.56
7.4.290.0030.00316.39
7.4.280.0060.00316.44
7.4.270.0040.00416.55
7.4.260.0030.00316.57
7.4.250.0040.00416.36
7.4.240.0040.00316.49
7.4.230.0070.00016.35
7.4.220.0040.01416.37
7.4.210.0130.00516.56
7.4.200.0000.00716.24
7.4.160.0080.00816.56
7.4.150.0050.01317.40
7.4.140.0090.00817.86
7.4.130.0130.00616.36
7.4.120.0090.01216.51
7.4.110.0120.00616.31
7.4.100.0100.01316.38
7.4.90.0110.00616.32
7.4.80.0070.01119.39
7.4.70.0080.00516.45
7.4.60.0030.01316.64
7.4.50.0130.00316.44
7.4.40.0100.00716.48
7.4.30.0040.01416.33
7.4.10.0030.01015.06
7.4.00.0040.01014.84
7.3.330.0030.00313.38
7.3.320.0040.00413.25
7.3.310.0000.00716.43
7.3.300.0070.00016.25
7.3.290.0070.00016.31
7.3.280.0120.00516.29
7.3.270.0140.00417.40
7.3.260.0110.00916.21
7.3.250.0080.00916.37
7.3.240.0120.00816.45
7.3.230.0030.01316.39
7.3.210.0100.00616.27
7.3.200.0110.01119.39
7.3.190.0100.00616.54
7.3.180.0100.00616.49
7.3.170.0100.00616.38
7.3.160.0100.00616.33
7.3.130.0100.00514.73
7.3.120.0080.00314.91
7.3.110.0020.01314.71
7.3.100.0060.00814.80
7.3.90.0050.00814.88
7.3.80.0090.00314.90
7.3.70.0070.00514.87
7.3.60.0050.00614.62
7.3.50.0080.00714.88
7.3.40.0020.00814.86
7.3.30.0090.00614.83
7.3.20.0030.01016.40
7.3.10.0060.00516.38
7.3.00.0010.00916.49
7.2.330.0110.00716.63
7.2.320.0100.00616.26
7.2.310.0110.00716.47
7.2.300.0000.01716.58
7.2.290.0100.00616.43
7.2.260.0070.00714.82
7.2.250.0020.01114.82
7.2.240.0030.01014.78
7.2.230.0080.00614.99
7.2.220.0050.00914.86
7.2.210.0070.00614.80
7.2.200.0030.00914.95
7.2.190.0050.00714.94
7.2.180.0080.00614.83
7.2.170.0050.00914.86
7.2.160.0030.01014.75
7.2.150.0060.00616.81
7.2.140.0050.00916.51
7.2.130.0040.00916.68
7.2.120.0020.01216.59
7.2.110.0070.01016.72
7.2.100.0060.00816.66
7.2.90.0070.00616.70
7.2.80.0100.00416.79
7.2.70.0070.00716.74
7.2.60.0040.00916.77
7.2.50.0050.00916.74
7.2.40.0070.00816.57
7.2.30.0080.00616.79
7.2.20.0030.01016.84
7.2.10.0060.00916.68
7.2.00.0060.00817.27
7.1.330.0090.00315.59
7.1.320.0020.01115.66
7.1.310.0010.01015.63
7.1.300.0060.00615.67
7.1.290.0060.00715.68
7.1.280.0080.00615.54
7.1.270.0030.00715.41
7.1.260.0030.00715.59
7.1.250.0030.00815.67
7.1.240.0100.00515.68
7.1.230.0050.00815.68
7.1.220.0050.00915.60
7.1.210.0040.01015.46
7.1.200.0040.00815.57
7.1.190.0070.00415.63
7.1.180.0030.00615.54
7.1.170.0050.01015.68
7.1.160.0100.00315.57
7.1.150.0040.00715.60
7.1.140.0060.00715.57
7.1.130.0030.01015.52
7.1.120.0070.00515.69
7.1.110.0030.00815.62
7.1.100.0040.00716.17
7.1.90.0050.00815.50
7.1.80.0030.00815.71
7.1.70.0070.00615.93
7.1.60.0050.01516.83
7.1.50.0110.00616.05
7.1.40.0050.01115.46
7.1.30.0050.00615.60
7.1.20.0020.00915.50
7.1.10.0060.00915.51
7.1.00.0110.02317.92
7.0.330.0030.00715.09
7.0.320.0020.00915.35
7.0.310.0050.00615.39
7.0.300.0080.00215.20
7.0.290.0050.00715.41
7.0.280.0050.00815.37
7.0.270.0070.00215.22
7.0.260.0000.01015.39
7.0.250.0050.01015.21
7.0.240.0080.00315.23
7.0.230.0030.01215.36
7.0.220.0050.00515.23
7.0.210.0050.00515.27
7.0.200.0100.01215.65
7.0.190.0050.01015.17
7.0.180.0000.01015.30
7.0.170.0060.00615.22
7.0.160.0040.00915.45
7.0.150.0070.00415.15
7.0.140.0030.01115.18
7.0.130.0090.00415.41
7.0.120.0060.00615.24
7.0.110.0090.00515.25
7.0.100.0080.03016.78
7.0.90.0090.02916.88
7.0.80.0040.02616.77
7.0.70.0070.03316.86
7.0.60.0050.03416.95
7.0.50.0070.03217.09
7.0.40.0060.03015.66
7.0.30.0050.02415.62
7.0.20.0060.03015.56
7.0.10.0040.03515.65
7.0.00.0100.02915.64
5.6.400.0060.00814.14
5.6.390.0030.00514.37
5.6.380.0060.00514.60
5.6.370.0040.00914.40
5.6.360.0030.01114.38
5.6.350.0000.01114.41
5.6.340.0040.00814.17
5.6.330.0070.00714.26
5.6.320.0020.01214.24
5.6.310.0030.01014.40
5.6.300.0050.01214.16
5.6.290.0090.00714.23
5.6.280.0060.02416.41
5.6.270.0050.01014.19
5.6.260.0050.01114.14
5.6.250.0060.02716.37
5.6.240.0080.03416.36
5.6.230.0040.03616.44
5.6.220.0070.02716.30
5.6.210.0060.03616.29
5.6.200.0100.02916.40
5.6.190.0110.02816.52
5.6.180.0050.02016.52
5.6.170.0090.03216.43
5.6.160.0060.02616.44
5.6.150.0090.02916.49
5.6.140.0030.03816.59
5.6.130.0100.02616.56
5.6.120.0050.03416.66
5.6.110.0090.03016.48
5.6.100.0010.03816.52
5.6.90.0080.03216.44
5.6.80.0070.03016.20
5.6.70.0080.02816.23
5.6.60.0070.03116.23
5.6.50.0100.01916.17
5.6.40.0100.02016.21
5.6.30.0100.02816.33
5.6.20.0060.03316.17
5.6.10.0100.02816.08
5.6.00.0050.03516.26
5.5.380.0070.01816.19
5.5.370.0070.03216.33
5.5.360.0070.02916.10
5.5.350.0070.03416.29
5.5.340.0030.02416.31
5.5.330.0110.02116.43
5.5.320.0080.03216.21
5.5.310.0080.02916.43
5.5.300.0040.02916.39
5.5.290.0050.03416.57
5.5.280.0080.03016.31
5.5.270.0090.03016.49
5.5.260.0110.02816.55
5.5.250.0080.01616.42
5.5.240.0020.02616.03
5.5.230.0060.03316.26
5.5.220.0030.03216.09
5.5.210.0050.03016.08
5.5.200.0070.02916.09
5.5.190.0080.02916.11
5.5.180.0030.02515.95
5.5.170.0050.00914.13
5.5.160.0060.03115.99
5.5.150.0070.03016.22
5.5.140.0050.01916.14
5.5.130.0070.02216.13
5.5.120.0080.02916.17
5.5.110.0060.02115.95
5.5.100.0070.03216.12
5.5.90.0100.02615.93
5.5.80.0080.03016.12
5.5.70.0050.03115.94
5.5.60.0040.03316.11
5.5.50.0090.02816.11
5.5.40.0010.03016.09
5.5.30.0060.03116.20
5.5.20.0080.02815.93
5.5.10.0070.02516.03
5.5.00.0100.02515.94

preferences:
49.07 ms | 401 KiB | 5 Q