3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); if(PHP_MAJOR_VERSION < 7 or PHP_MINOR_VERSION < 1) die(); function testParam(?string $arg){ 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.0070.01418.43
8.3.50.0160.01016.38
8.3.40.0130.00918.83
8.3.30.0140.00418.88
8.3.20.0000.01020.21
8.3.10.0000.00923.29
8.3.00.0030.00519.68
8.2.180.0150.00318.29
8.2.170.0090.00622.96
8.2.160.0120.00419.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00219.32
8.2.120.0050.00326.35
8.2.110.0030.00620.20
8.2.100.0040.00817.84
8.2.90.0000.00919.10
8.2.80.0000.00817.97
8.2.70.0040.00417.49
8.2.60.0080.00017.80
8.2.50.0030.00518.10
8.2.40.0040.00420.59
8.2.30.0040.00419.13
8.2.20.0000.00718.02
8.2.10.0040.00417.86
8.2.00.0040.00417.98
8.1.280.0120.00325.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.01
8.1.230.0080.00519.02
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0040.00418.43
8.1.160.0000.00718.99
8.1.150.0080.00018.74
8.1.140.0040.00419.32
8.1.130.0000.00718.77
8.1.120.0000.00817.30
8.1.110.0000.00817.32
8.1.100.0000.00817.39
8.1.90.0030.00517.26
8.1.80.0040.00417.16
8.1.70.0040.00417.31
8.1.60.0000.00817.52
8.1.50.0000.00817.46
8.1.40.0040.00417.42
8.1.30.0000.00717.63
8.1.20.0000.00817.64
8.1.10.0040.00417.51
8.1.00.0000.00817.43
8.0.300.0070.00020.07
8.0.290.0040.00416.63
8.0.280.0030.00318.23
8.0.270.0030.00317.12
8.0.260.0030.00316.62
8.0.250.0060.00016.82
8.0.240.0040.00416.79
8.0.230.0000.00816.89
8.0.220.0030.00316.77
8.0.210.0030.00316.77
8.0.200.0000.00616.80
8.0.190.0030.00916.89
8.0.180.0040.00416.67
8.0.170.0000.00716.82
8.0.160.0040.00416.72
8.0.150.0100.00016.72
8.0.140.0000.00816.82
8.0.130.0000.00713.27
8.0.120.0040.00416.82
8.0.110.0040.00416.71
8.0.100.0000.00716.71
8.0.90.0030.00516.84
8.0.80.0090.00616.77
8.0.70.0040.00416.83
8.0.60.0040.00416.60
8.0.50.0050.00316.85
8.0.30.0090.00917.06
8.0.20.0140.00817.40
8.0.10.0000.00716.83
8.0.00.0120.00616.49
7.4.330.0000.00615.55
7.4.320.0000.00616.52
7.4.300.0000.00616.43
7.4.290.0000.00716.45
7.4.280.0050.00316.52
7.4.270.0030.00316.58
7.4.260.0070.00016.40
7.4.250.0000.00716.53
7.4.240.0000.00716.54
7.4.230.0000.00716.53
7.4.220.0150.00416.46
7.4.210.0100.01016.38
7.4.200.0030.00316.63
7.4.160.0070.01016.37
7.4.150.0030.01517.40
7.4.140.0090.01217.86
7.4.130.0150.01216.52
7.4.120.0100.01016.39
7.4.110.0070.01016.48
7.4.100.0120.01516.36
7.4.90.0070.01016.65
7.4.80.0080.01219.39
7.4.70.0030.01216.34
7.4.60.0090.00616.25
7.4.50.0100.00616.46
7.4.40.0080.00916.41
7.4.30.0130.00316.63
7.4.00.0030.01114.80
7.3.330.0020.00213.15
7.3.320.0000.00513.11
7.3.310.0000.00716.33
7.3.300.0070.00016.16
7.3.290.0060.01216.29
7.3.280.0090.00616.31
7.3.270.0080.01117.40
7.3.260.0150.00216.40
7.3.250.0070.01216.44
7.3.240.0110.00616.19
7.3.230.0090.00916.26
7.3.210.0090.01216.58
7.3.200.0140.00716.27
7.3.190.0070.01116.46
7.3.180.0130.00316.54
7.3.170.0110.00616.49
7.3.160.0050.01116.37
7.2.330.0100.00616.74
7.2.320.0090.01316.40
7.2.310.0090.00816.28
7.2.300.0190.00716.37
7.2.290.0050.01416.31
7.2.60.0100.00316.77
7.2.00.0070.01119.11
7.1.200.0070.00715.68
7.1.100.0030.01217.70
7.1.70.0050.01217.28
7.1.60.0180.01934.75
7.1.50.0280.01034.72
7.1.40.0290.01534.26
7.1.30.0230.01834.61
7.1.20.0260.01234.54
7.1.10.0070.01516.43
7.1.00.0020.01816.54
7.0.200.0100.00616.72
7.0.190.0090.00916.49
7.0.180.0060.01315.84
7.0.170.0030.01516.13
7.0.160.0050.01316.25
7.0.150.0120.00516.13
7.0.140.0140.00516.07
7.0.130.0080.01316.26
7.0.120.0080.01116.41
7.0.110.0110.00716.09
7.0.100.0060.01216.33
7.0.90.0080.00916.04
7.0.80.0040.01616.25
7.0.70.0130.00715.91
7.0.60.0050.01516.01
7.0.50.0030.01116.26
7.0.40.0120.00616.42
7.0.30.0000.01816.42
7.0.20.0070.01016.21
7.0.10.0050.01216.34
7.0.00.0050.01216.05

preferences:
47.64 ms | 401 KiB | 5 Q