3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Provider { /** * Dynamically handle missing method calls. * * @param string $method * @param array $parameters * @return mixed * * @throws \BadMethodCallException */ public function __call($method, $parameters) { if ($method == 'boot') { return; } throw new BadMethodCallException("Call to undefined method [{$method}]"); } } class ProviderB extends Provider { public function boot(int $x) { return 'yay'; } } class ProviderC extends Provider { } $f = new ProviderB; $f->boot(1, 2, 3); $g = new ProviderC; $g->boot(1, 2, 3);

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.01016.63
8.3.50.0100.00921.91
8.3.40.0030.01518.54
8.3.30.0100.00718.77
8.3.20.0000.00720.20
8.3.10.0070.00023.66
8.3.00.0000.00821.67
8.2.180.0040.01116.75
8.2.170.0150.00022.96
8.2.160.0130.00322.21
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00420.50
8.2.120.0080.00026.35
8.2.110.0060.00319.12
8.2.100.0060.00617.80
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0030.00617.80
8.2.50.0080.00018.09
8.2.40.0040.00420.64
8.2.30.0000.00719.25
8.2.20.0000.01117.68
8.2.10.0050.00217.91
8.2.00.0000.00817.89
8.1.280.0120.00325.92
8.1.270.0060.00322.05
8.1.260.0110.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.48
8.1.230.0040.00717.83
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0090.00016.98
8.1.190.0030.00617.22
8.1.180.0090.00018.10
8.1.170.0050.00518.45
8.1.160.0000.00720.85
8.1.150.0070.00018.77
8.1.140.0090.00019.58
8.1.130.0000.00717.77
8.1.120.0000.00717.52
8.1.110.0030.00517.37
8.1.100.0070.00017.52
8.1.90.0030.00517.46
8.1.80.0040.00417.48
8.1.70.0030.00317.47
8.1.60.0000.00817.59
8.1.50.0000.00817.43
8.1.40.0040.00417.52
8.1.30.0040.00417.63
8.1.20.0040.00417.62
8.1.10.0040.00417.58
8.1.00.0040.00417.38
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0040.00418.26
8.0.270.0050.00317.18
8.0.260.0030.00317.18
8.0.250.0060.00316.94
8.0.240.0030.00316.95
8.0.230.0030.00316.83
8.0.220.0030.00616.71
8.0.210.0020.00516.74
8.0.200.0000.00716.81
8.0.190.0040.00416.88
8.0.180.0040.00416.88
8.0.170.0030.00416.75
8.0.160.0000.00716.91
8.0.150.0040.00416.69
8.0.140.0000.00716.72
8.0.130.0030.00313.23
8.0.120.0000.00816.68
8.0.110.0000.00716.75
8.0.100.0040.00416.89
8.0.90.0070.00016.62
8.0.80.0070.00716.78
8.0.70.0040.00416.79
8.0.60.0040.00416.68
8.0.50.0000.00716.88
8.0.30.0090.01217.15
8.0.20.0110.00817.40
8.0.10.0050.00316.94
8.0.00.0090.00816.82
7.4.330.0050.00016.67
7.4.320.0000.00616.52
7.4.300.0030.00316.58
7.4.290.0070.00016.63
7.4.280.0040.00416.59
7.4.270.0000.00616.49
7.4.260.0080.00416.36
7.4.250.0030.00316.62
7.4.240.0040.00416.57
7.4.230.0040.00416.58
7.4.220.0150.00716.54
7.4.210.0000.01716.65
7.4.200.0030.00316.64
7.4.160.0060.00916.45
7.4.150.0090.01217.40
7.4.140.0150.00917.86
7.4.130.0070.01116.48
7.4.120.0100.00916.45
7.4.110.0070.01016.42
7.4.100.0090.00616.68
7.4.90.0130.00716.40
7.4.80.0120.00719.39
7.4.70.0090.01416.38
7.4.60.0110.01116.59
7.4.50.0030.01316.58
7.4.40.0060.01016.50
7.4.30.0100.00716.60
7.4.00.0030.01015.08
7.3.330.0050.00013.10
7.3.320.0050.00013.31
7.3.310.0050.00316.13
7.3.300.0030.00316.20
7.3.290.0100.00616.21
7.3.280.0070.01216.24
7.3.270.0060.01217.40
7.3.260.0070.01016.32
7.3.250.0090.01016.30
7.3.240.0110.00616.33
7.3.230.0060.01116.39
7.3.210.0130.01016.13
7.3.200.0070.01119.39
7.3.190.0070.01016.26
7.3.180.0080.00816.62
7.3.170.0120.00916.54
7.3.160.0000.01516.18
7.3.00.0060.00916.41
7.2.330.0100.00716.65
7.2.320.0060.01516.63
7.2.310.0030.01316.57
7.2.300.0060.01016.34
7.2.290.0090.00916.48
7.2.130.0030.01016.62
7.2.120.0030.01216.70
7.2.110.0040.00416.54
7.2.100.0070.01016.72
7.2.90.0040.00416.77
7.2.80.0100.00316.64
7.2.70.0100.00316.70
7.2.60.0110.00616.48
7.2.50.0090.00316.50
7.2.40.0060.00616.78
7.2.30.0040.01116.80
7.2.20.0100.00616.52
7.2.10.0040.00816.55
7.2.00.0060.00917.86
7.1.250.0090.00615.53
7.1.240.0140.00015.43
7.1.230.0130.00015.27
7.1.220.0080.00315.50
7.1.210.0070.01015.35
7.1.200.0030.00715.66
7.1.190.0040.01115.21
7.1.180.0000.01215.51
7.1.170.0040.01215.71
7.1.160.0030.00615.43
7.1.150.0000.00815.47
7.1.140.0080.00815.72
7.1.130.0070.00715.44
7.1.120.0080.00015.73
7.1.110.0080.00415.50
7.1.100.0060.00316.74
7.1.90.0030.00515.67
7.1.80.0030.00615.33
7.1.70.0060.00616.18
7.1.60.0070.00816.35
7.1.50.0070.00616.19
7.1.40.0070.00815.98
7.1.30.0080.00715.93
7.1.20.0100.00415.86
7.1.10.0060.00715.93
7.1.00.0050.00716.00
7.0.330.0110.00314.87
7.0.320.0110.00315.03
7.0.310.0030.00915.18
7.0.300.0030.00814.86
7.0.290.0100.00315.08
7.0.280.0060.01115.33
7.0.270.0060.00615.07
7.0.260.0140.00414.89
7.0.250.0000.01515.09
7.0.240.0130.00015.17
7.0.230.0040.01114.93
7.0.220.0090.00014.90
7.0.210.0060.00615.05
7.0.200.0060.00815.81
7.0.190.0050.00815.78
7.0.180.0040.00815.62
7.0.170.0030.00715.62
7.0.160.0100.00215.66
7.0.150.0100.00315.74
7.0.140.0020.01015.49
7.0.130.0040.00915.64
7.0.120.0050.00715.76
7.0.110.0060.00515.61
7.0.100.0090.00215.63
7.0.90.0030.00815.67
7.0.80.0020.00815.81
7.0.70.0030.00815.86
7.0.60.0030.01115.49
7.0.50.0070.00515.80
7.0.40.0070.00314.21
7.0.30.0060.00714.14
7.0.20.0100.00214.21
7.0.10.0040.00614.15
7.0.00.0060.00614.16
5.6.380.0030.01214.37
5.6.370.0070.00414.06
5.6.360.0040.01114.03
5.6.350.0090.00314.63
5.6.340.0080.00614.40
5.6.330.0130.00014.33
5.6.320.0000.00814.51
5.6.310.0060.00314.32
5.6.300.0030.03217.58
5.6.290.0050.02617.48
5.6.280.0040.02817.47
5.6.270.0050.02317.50
5.6.260.0090.02117.53
5.6.250.0070.04417.55
5.6.240.0050.02917.57
5.6.230.0140.02117.65
5.6.220.0050.02617.56
5.6.210.0050.02617.59
5.6.200.0050.02617.58
5.6.190.0080.02317.49
5.6.180.0060.03517.64
5.6.170.0060.02417.62
5.6.160.0070.02417.47
5.6.150.0090.02417.50
5.6.140.0050.02517.45
5.6.130.0030.03217.55
5.6.120.0050.02417.54
5.6.110.0060.02617.59
5.6.100.0020.03017.39
5.6.90.0100.02217.47
5.6.80.0080.02117.25
5.6.70.0000.02917.14
5.6.60.0030.02917.17
5.6.50.0140.02717.25
5.6.40.0080.02217.12
5.6.30.0080.02317.21
5.6.20.0050.02417.35
5.6.10.0060.02217.14
5.6.00.0030.03117.13
5.5.380.0030.02414.27
5.5.370.0070.01914.45
5.5.360.0070.04114.29
5.5.350.0050.02114.37
5.5.340.0030.02414.34
5.5.330.0030.02314.58
5.5.320.0060.02814.38
5.5.310.0050.02114.63
5.5.300.0030.02314.64
5.5.290.0050.04114.53
5.5.280.0090.02714.53
5.5.270.0060.02214.53
5.5.260.0040.02414.42
5.5.250.0050.02314.37
5.5.240.0040.02314.23
5.5.230.0020.02614.28
5.5.220.0030.02514.26
5.5.210.0000.02614.12
5.5.200.0090.02414.10
5.5.190.0060.02314.21
5.5.180.0000.02914.13
5.5.170.0030.00710.83
5.5.160.0030.02414.18
5.5.150.0040.02114.24
5.5.140.0070.01813.97
5.5.130.0070.01914.23
5.5.120.0000.02314.32
5.5.110.0030.02414.28
5.5.100.0050.02214.28
5.5.90.0030.02114.16
5.5.80.0020.02214.17
5.5.70.0030.02214.14
5.5.60.0050.02214.10
5.5.50.0010.02214.04
5.5.40.0020.02414.21
5.5.30.0040.02213.99
5.5.20.0000.03314.22
5.5.10.0020.02714.08
5.5.00.0130.01914.16

preferences:
60.35 ms | 401 KiB | 5 Q