3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Example { public function foo(int $f = null) { } } $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.0100.00718.48
8.3.50.0110.00716.29
8.3.40.0070.00718.45
8.3.30.0040.01118.54
8.3.20.0000.00820.20
8.3.10.0070.00323.48
8.3.00.0050.00319.56
8.2.180.0160.00316.32
8.2.170.0170.00022.96
8.2.160.0140.00018.95
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00019.38
8.2.120.0040.00426.35
8.2.110.0040.00422.12
8.2.100.0050.00917.78
8.2.90.0080.00019.02
8.2.80.0000.00917.97
8.2.70.0080.00417.25
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0040.00420.63
8.2.30.0080.00019.25
8.2.20.0040.00418.03
8.2.10.0000.00717.95
8.2.00.0000.00717.98
8.1.280.0040.01125.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.94
8.1.230.0040.00722.12
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0090.00017.00
8.1.190.0090.00017.00
8.1.180.0050.00318.10
8.1.170.0040.00418.47
8.1.160.0050.00219.04
8.1.150.0040.00718.81
8.1.140.0000.00719.50
8.1.130.0070.00318.80
8.1.120.0000.00817.41
8.1.110.0030.00517.23
8.1.100.0000.00817.29
8.1.90.0050.00217.40
8.1.80.0040.00417.32
8.1.70.0000.00717.35
8.1.60.0020.00517.55
8.1.50.0040.00417.48
8.1.40.0000.00817.53
8.1.30.0050.00317.61
8.1.20.0000.00817.57
8.1.10.0000.00817.51
8.1.00.0040.00417.44
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.26
8.0.270.0000.00717.10
8.0.260.0030.00316.66
8.0.250.0030.00316.84
8.0.240.0000.00716.78
8.0.230.0070.00316.75
8.0.220.0070.00016.70
8.0.210.0030.00316.86
8.0.200.0000.00616.74
8.0.190.0040.00416.81
8.0.180.0040.00416.73
8.0.170.0040.00416.91
8.0.160.0040.00416.88
8.0.150.0040.00416.65
8.0.140.0030.00316.73
8.0.130.0000.00613.20
8.0.120.0040.00416.68
8.0.110.0000.00816.63
8.0.100.0020.00516.75
8.0.90.0070.00016.65
8.0.80.0160.00016.80
8.0.70.0040.00416.81
8.0.60.0030.00616.72
8.0.50.0070.00016.76
8.0.30.0080.01217.00
8.0.20.0120.01017.40
8.0.10.0000.00716.82
8.0.00.0120.01216.82
7.4.330.0000.00615.55
7.4.320.0000.00616.43
7.4.300.0000.00616.59
7.4.290.0050.00316.35
7.4.280.0080.00016.61
7.4.270.0070.00016.49
7.4.260.0000.00716.46
7.4.250.0070.00016.56
7.4.240.0040.00416.57
7.4.230.0030.00316.49
7.4.220.0210.00316.44
7.4.210.0000.01516.53
7.4.200.0020.00516.69
7.4.160.0110.00516.44
7.4.150.0030.01417.40
7.4.140.0100.01017.86
7.4.130.0220.00016.65
7.4.120.0140.00916.43
7.4.110.0150.00416.57
7.4.100.0120.00916.48
7.4.90.0100.00916.36
7.4.80.0110.01119.39
7.4.70.0070.00716.32
7.4.60.0130.00316.45
7.4.50.0080.00616.36
7.4.40.0080.00816.17
7.4.30.0110.01116.56
7.4.00.0030.01014.91
7.3.330.0060.00013.10
7.3.320.0000.00613.06
7.3.310.0040.00416.22
7.3.300.0070.00016.27
7.3.290.0080.00516.25
7.3.280.0070.01016.24
7.3.270.0100.00717.40
7.3.260.0090.01216.51
7.3.250.0070.01316.22
7.3.240.0060.01416.17
7.3.230.0070.01016.34
7.3.210.0100.00716.33
7.3.200.0130.00716.48
7.3.190.0080.00816.32
7.3.180.0170.00316.36
7.3.170.0080.00816.19
7.3.160.0080.00816.52
7.2.330.0100.00716.45
7.2.320.0160.00316.48
7.2.310.0170.00016.62
7.2.300.0090.01216.57
7.2.290.0110.00616.34
7.2.60.0000.01616.80
7.2.00.0030.00919.10
7.1.200.0060.00615.59
7.1.100.0000.01217.90
7.1.70.0100.00717.15
7.1.60.0210.00735.06
7.1.50.0190.01134.63
7.1.40.0160.01334.17
7.1.30.0190.01034.38
7.1.20.0140.01434.48
7.1.10.0130.00316.29
7.1.00.0030.01216.57
7.0.200.0070.00716.64
7.0.190.0060.00616.52
7.0.180.0000.01516.10
7.0.170.0000.01416.08
7.0.160.0040.00816.09
7.0.150.0080.00516.07
7.0.140.0080.00716.15
7.0.130.0030.01016.34
7.0.120.0100.00316.46
7.0.110.0080.00616.23
7.0.100.0080.00616.15
7.0.90.0060.00616.30
7.0.80.0030.01016.20
7.0.70.0030.01316.13
7.0.60.0080.00416.02
7.0.50.0060.00916.22
7.0.40.0050.00816.30
7.0.30.0070.01016.27
7.0.20.0030.01616.27
7.0.10.0120.00616.52
7.0.00.0140.00016.33

preferences:
40.26 ms | 401 KiB | 5 Q