3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public function foo(integer $f = null, integer $b) { } } $e = new Example; $e->foo(null, 2); $e->foo(null, 1); //$e->foo(9); //$e->foo('string');

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.0140.00416.88
8.3.50.0090.00616.57
8.3.40.0070.00718.82
8.3.30.0120.00318.72
8.3.20.0040.00420.31
8.3.10.0070.00321.77
8.3.00.0000.00819.68
8.2.180.0170.00316.63
8.2.170.0040.01122.96
8.2.160.0040.01418.99
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.20
8.2.120.0080.00026.35
8.2.110.0090.00022.08
8.2.100.0080.00417.84
8.2.90.0050.00319.17
8.2.80.0060.00317.97
8.2.70.0090.00317.38
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0070.00020.42
8.2.30.0040.00419.05
8.2.20.0050.00217.86
8.2.10.0000.00718.03
8.2.00.0040.00417.99
8.1.280.0130.00325.92
8.1.270.0040.00422.06
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00324.02
8.1.230.0040.00722.11
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.44
8.1.160.0040.00419.05
8.1.150.0000.00918.73
8.1.140.0040.00419.56
8.1.130.0060.00318.76
8.1.120.0030.00517.25
8.1.110.0040.00417.31
8.1.100.0000.00817.30
8.1.90.0070.00017.39
8.1.80.0040.00417.35
8.1.70.0000.00717.30
8.1.60.0050.00317.47
8.1.50.0030.00617.43
8.1.40.0030.00617.47
8.1.30.0000.00817.69
8.1.20.0000.00917.48
8.1.10.0000.00917.61
8.1.00.0040.00417.41
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.33
8.0.270.0030.00317.18
8.0.260.0030.00316.77
8.0.250.0030.00316.94
8.0.240.0030.00516.91
8.0.230.0110.00016.82
8.0.220.0000.00716.75
8.0.210.0030.00316.86
8.0.200.0070.00016.97
8.0.190.0070.00016.95
8.0.180.0000.00716.80
8.0.170.0000.00716.86
8.0.160.0040.00416.98
8.0.150.0000.00816.77
8.0.140.0040.00416.73
8.0.130.0000.00513.23
8.0.120.0050.00216.73
8.0.110.0040.00416.93
8.0.100.0040.00416.72
8.0.90.0040.00416.93
8.0.80.0080.00816.95
8.0.70.0040.00416.76
8.0.60.0000.00816.95
8.0.50.0050.00216.84
8.0.30.0140.00517.04
8.0.20.0090.01117.40
8.0.10.0050.00316.86
8.0.00.0160.00816.89
7.4.330.0050.00015.55
7.4.320.0030.00516.36
7.4.300.0060.00016.59
7.4.290.0000.00716.35
7.4.280.0030.00416.49
7.4.270.0000.00716.61
7.4.260.0050.00316.60
7.4.250.0000.00716.51
7.4.240.0000.00716.64
7.4.230.0040.00416.57
7.4.220.0180.00316.58
7.4.210.0060.00916.55
7.4.200.0000.00816.70
7.4.160.0090.00916.59
7.4.150.0030.01417.40
7.4.140.0140.00617.86
7.4.130.0220.00316.46
7.4.120.0130.00816.63
7.4.110.0090.00916.39
7.4.100.0120.00916.38
7.4.90.0150.00416.41
7.4.80.0120.01219.39
7.4.70.0100.00716.56
7.4.60.0060.00916.62
7.4.50.0100.01116.30
7.4.40.0050.01116.55
7.4.30.0090.01416.56
7.4.00.0040.01114.76
7.3.330.0000.00513.18
7.3.320.0030.00313.13
7.3.310.0030.00316.31
7.3.300.0030.00316.21
7.3.290.0030.01316.31
7.3.280.0070.00916.33
7.3.270.0160.02617.40
7.3.260.0080.01316.44
7.3.250.0080.00816.43
7.3.240.0110.00816.54
7.3.230.0170.00716.20
7.3.210.0100.00716.37
7.3.200.0120.00916.38
7.3.190.0100.00616.55
7.3.180.0100.00716.58
7.3.170.0110.01116.57
7.3.160.0120.00316.45
7.2.330.0070.01016.37
7.2.320.0090.01516.44
7.2.310.0100.00516.52
7.2.300.0070.01716.68
7.2.290.0100.01316.65
7.2.60.0070.01016.49
7.2.00.0030.00919.39
7.1.200.0000.01115.62
7.1.100.0040.00817.91
7.1.70.0000.01416.90
7.1.60.0130.01634.89
7.1.50.0140.01434.41
7.1.40.0220.01034.50
7.1.30.0160.01334.38
7.1.20.0160.01334.48
7.1.10.0070.01416.31
7.1.00.0070.00716.71
7.0.200.0030.01116.57
7.0.190.0070.00716.61
7.0.180.0030.01116.30
7.0.170.0130.00316.27
7.0.160.0060.00916.10
7.0.150.0090.01116.35
7.0.140.0100.01016.36
7.0.130.0040.01216.40
7.0.120.0040.01516.49
7.0.110.0000.01616.43
7.0.100.0080.00816.18
7.0.90.0060.01116.13
7.0.80.0070.01216.36
7.0.70.0060.00816.16
7.0.60.0060.00915.93
7.0.50.0070.00716.18
7.0.40.0060.01316.32
7.0.30.0000.01616.28
7.0.20.0030.01516.24
7.0.10.0090.00916.23
7.0.00.0560.01316.34

preferences:
56.76 ms | 400 KiB | 5 Q