3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=0); class Example { public function foo(int $f) { } } $e = new Example; $e->foo(null); //$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.0000.01416.75
8.3.50.0040.01116.38
8.3.40.0070.01318.79
8.3.30.0110.00318.84
8.3.20.0030.00620.16
8.3.10.0100.00023.50
8.3.00.0040.00419.80
8.2.180.0100.01016.63
8.2.170.0040.01122.96
8.2.160.0070.00719.07
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00019.33
8.2.120.0070.00026.16
8.2.110.0000.00920.51
8.2.100.0040.00817.72
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0000.00720.39
8.2.30.0000.00819.14
8.2.20.0050.00217.91
8.2.10.0000.00717.90
8.2.00.0000.00717.99
8.1.280.0080.00625.92
8.1.270.0020.00522.17
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.62
8.1.230.0040.00719.09
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.49
8.1.160.0000.00718.96
8.1.150.0040.00418.82
8.1.140.0040.00419.50
8.1.130.0070.00418.82
8.1.120.0040.00417.43
8.1.110.0040.00417.32
8.1.100.0000.00717.40
8.1.90.0040.00417.36
8.1.80.0000.00717.35
8.1.70.0000.00717.35
8.1.60.0040.00417.55
8.1.50.0060.00317.48
8.1.40.0000.00717.48
8.1.30.0000.00817.64
8.1.20.0000.00817.65
8.1.10.0050.00317.65
8.1.00.0050.00217.50
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0040.00418.41
8.0.270.0000.00717.10
8.0.260.0070.00016.82
8.0.250.0000.00716.97
8.0.240.0030.00616.93
8.0.230.0070.00317.00
8.0.220.0030.00316.87
8.0.210.0030.00316.83
8.0.200.0050.00216.96
8.0.190.0080.00016.91
8.0.180.0040.00416.88
8.0.170.0000.00716.81
8.0.160.0000.00816.88
8.0.150.0060.00316.71
8.0.140.0000.00716.73
8.0.130.0030.00313.27
8.0.120.0000.00716.84
8.0.110.0000.00816.78
8.0.100.0000.00716.94
8.0.90.0040.00416.71
8.0.80.0080.00716.93
8.0.70.0040.00416.71
8.0.60.0000.00716.85
8.0.50.0040.00416.91
8.0.30.0120.00817.05
8.0.20.0110.00817.40
8.0.10.0070.00016.89
8.0.00.0100.01016.73
7.4.330.0000.00615.55
7.4.320.0030.00316.56
7.4.300.0000.00616.56
7.4.290.0070.00016.51
7.4.280.0070.00016.48
7.4.270.0030.00316.48
7.4.260.0070.00016.50
7.4.250.0050.00316.47
7.4.240.0000.00716.45
7.4.230.0000.00716.60
7.4.220.0090.00916.45
7.4.210.0100.01016.63
7.4.200.0030.00316.25
7.4.160.0090.00716.54
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0210.00316.47
7.4.120.0090.01016.47
7.3.330.0050.00013.44
7.3.320.0000.00513.20
7.3.310.0000.00816.39
7.3.300.0040.00416.37
7.3.290.0100.00516.40
7.3.280.0080.00916.37
7.3.270.0120.01117.40
7.3.260.0100.00916.35
7.3.250.0090.00816.46
7.3.240.0120.00816.43
7.1.70.0030.01017.25

preferences:
64.31 ms | 401 KiB | 5 Q