3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function testParam(?string $arg = null){ var_dump($arg); } testParam(null); testParam("hi"); testParam();

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.0210.00018.21
8.3.50.0000.01416.48
8.3.40.0040.01118.86
8.3.30.0100.00718.54
8.3.20.0040.00420.34
8.3.10.0000.00923.62
8.3.00.0000.00819.31
8.2.180.0070.01018.16
8.2.170.0110.00422.96
8.2.160.0060.00818.99
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00419.21
8.2.120.0040.00426.35
8.2.110.0090.00020.35
8.2.100.0000.01217.72
8.2.90.0030.00518.92
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0030.00520.41
8.2.30.0030.00619.07
8.2.20.0040.00417.93
8.2.10.0040.00417.88
8.2.00.0040.00417.92
8.1.280.0070.00725.92
8.1.270.0000.00823.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00320.70
8.1.230.0120.00019.21
8.1.220.0070.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0040.00418.95
8.1.150.0000.00918.77
8.1.140.0040.00419.45
8.1.130.0000.00718.67
8.1.120.0040.00417.37
8.1.110.0000.00717.35
8.1.100.0050.00317.39
8.1.90.0000.00717.40
8.1.80.0030.00417.27
8.1.70.0040.00417.36
8.1.60.0080.00017.53
8.1.50.0050.00317.46
8.1.40.0040.00417.43
8.1.30.0040.00417.60
8.1.20.0040.00417.58
8.1.10.0000.00717.40
8.1.00.0040.00417.25
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0040.00418.30
8.0.270.0030.00317.19
8.0.260.0030.00316.70
8.0.250.0030.00316.84
8.0.240.0000.01016.85
8.0.230.0000.00816.70
8.0.220.0040.00416.79
8.0.210.0040.00416.68
8.0.200.0030.00316.87
8.0.190.0030.00616.76
8.0.180.0000.00716.80
8.0.170.0040.00316.65
8.0.160.0000.00716.78
8.0.150.0090.00316.58
8.0.140.0050.00316.73
8.0.130.0000.00513.20
8.0.120.0040.00416.66
8.0.110.0000.00716.80
8.0.100.0040.00416.56
8.0.90.0090.00016.60
8.0.80.0090.00916.82
8.0.70.0050.00316.55
8.0.60.0000.00716.77
8.0.50.0040.00416.65
8.0.30.0110.00916.98
8.0.20.0090.00917.40
8.0.10.0060.00316.78
8.0.00.0110.00616.48
7.4.330.0060.00015.55
7.4.320.0070.00016.38
7.4.300.0060.00016.54
7.4.290.0050.00216.42
7.4.280.0080.00016.52
7.4.270.0030.00316.52
7.4.260.0070.00016.32
7.4.250.0040.00416.39
7.4.240.0030.00316.53
7.4.230.0030.00316.54
7.4.220.0070.01416.55
7.4.210.0060.00916.58
7.4.200.0070.00016.56
7.4.160.0120.00416.35
7.4.150.0120.00617.40
7.4.140.0150.00417.86
7.4.130.0120.00916.23
7.4.120.0060.01316.35
7.4.110.0140.00416.56
7.4.100.0120.01216.36
7.4.90.0100.00716.61
7.4.80.0050.01119.39
7.4.70.0060.01016.57
7.4.60.0120.00316.30
7.4.50.0090.00616.54
7.4.40.0030.01316.31
7.4.30.0080.01216.34
7.4.00.0060.00615.00
7.3.330.0000.00513.25
7.3.320.0030.00313.21
7.3.310.0030.00316.23
7.3.300.0070.00016.19
7.3.290.0050.00916.22
7.3.280.0110.00716.23
7.3.270.0100.01017.40
7.3.260.0090.00716.32
7.3.250.0100.00816.26
7.3.240.0100.00716.27
7.3.230.0120.00616.37
7.3.210.0060.00916.16
7.3.200.0110.00816.21
7.3.190.0030.01916.36
7.3.180.0070.01016.43
7.3.170.0060.00916.20
7.3.160.0110.00516.45
7.3.10.0130.00616.36
7.3.00.0100.00616.23
7.2.330.0110.00716.40
7.2.320.0080.01716.43
7.2.310.0120.00916.50
7.2.300.0100.01416.48
7.2.290.0070.01016.59
7.2.130.0070.00816.29
7.2.120.0070.00716.33
7.2.110.0100.00616.59
7.2.100.0090.00916.50
7.2.90.0100.00416.67
7.2.80.0130.00616.53
7.2.70.0110.00616.39
7.2.60.0090.00516.49
7.2.50.0060.01116.49
7.2.40.0090.00516.78
7.2.30.0070.00816.49
7.2.20.0090.00716.50
7.2.10.0090.00516.40
7.2.00.0100.00817.42
7.1.250.0060.00415.68
7.1.200.0080.00415.72
7.1.100.0040.01217.72
7.1.70.0050.01517.20
7.1.60.0340.00934.85
7.1.50.0220.01534.77
7.1.40.0190.01534.37
7.1.30.0180.01734.45
7.1.20.0150.01634.39
7.1.10.0060.01316.61
7.1.00.0060.01016.87
7.0.200.0020.01816.55
7.0.190.0050.01316.53
7.0.180.0060.01216.13
7.0.170.0180.01816.13
7.0.160.0030.01316.25
7.0.150.0110.00616.21
7.0.140.0090.01216.06
7.0.130.0070.00916.25
7.0.120.0030.01316.13
7.0.110.0050.00916.19
7.0.100.0090.00716.09
7.0.90.0090.00716.20
7.0.80.0150.00616.27
7.0.70.0070.01016.04
7.0.60.0030.01316.09
7.0.50.0110.01316.30
7.0.40.0050.01216.14
7.0.30.0100.00616.32
7.0.20.0050.01316.21
7.0.10.0060.01116.35
7.0.00.0040.01116.41

preferences:
55.05 ms | 401 KiB | 5 Q