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.0090.00618.30
8.3.50.0070.01016.12
8.3.40.0070.00718.59
8.3.30.0160.00318.59
8.3.20.0040.00420.42
8.3.10.0060.00323.48
8.3.00.0050.00319.55
8.2.180.0030.01418.41
8.2.170.0060.00822.96
8.2.160.0100.00318.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.38
8.2.120.0040.00426.35
8.2.110.0100.00020.37
8.2.100.0060.00617.78
8.2.90.0040.00419.16
8.2.80.0070.00017.97
8.2.70.0000.00917.21
8.2.60.0000.00817.80
8.2.50.0030.00618.10
8.2.40.0070.00320.64
8.2.30.0040.00419.13
8.2.20.0000.00717.85
8.2.10.0040.00417.93
8.2.00.0070.00017.83
8.1.280.0090.00625.92
8.1.270.0040.00422.04
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00420.75
8.1.230.0040.00819.01
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.22
8.1.190.0000.00817.11
8.1.180.0040.00418.10
8.1.170.0000.00918.66
8.1.160.0000.00818.95
8.1.150.0030.00718.70
8.1.140.0000.00719.45
8.1.130.0070.00018.76
8.1.120.0030.00317.39
8.1.110.0040.00417.18
8.1.100.0050.00317.34
8.1.90.0000.00717.34
8.1.80.0080.00017.25
8.1.70.0040.00417.29
8.1.60.0000.00817.52
8.1.50.0020.00517.51
8.1.40.0040.00417.43
8.1.30.0040.00417.59
8.1.20.0040.00417.55
8.1.10.0080.00017.28
8.1.00.0030.00617.20
8.0.300.0040.00418.77
8.0.290.0030.00516.58
8.0.280.0000.00718.31
8.0.270.0000.00717.04
8.0.260.0040.00416.60
8.0.250.0000.00716.73
8.0.240.0030.00516.85
8.0.230.0030.00316.81
8.0.220.0030.00316.64
8.0.210.0070.00016.83
8.0.200.0000.00616.86
8.0.190.0040.00716.71
8.0.180.0000.00716.83
8.0.170.0040.00416.79
8.0.160.0040.00416.66
8.0.150.0040.00416.74
8.0.140.0060.00316.71
8.0.130.0030.00313.15
8.0.120.0070.00016.69
8.0.110.0040.00416.66
8.0.100.0030.00516.63
8.0.90.0040.00416.88
8.0.80.0170.00316.78
8.0.70.0030.00516.81
8.0.60.0050.00216.57
8.0.50.0000.00716.71
8.0.30.0100.00816.98
8.0.20.0110.00817.40
8.0.10.0030.00716.91
8.0.00.0060.01116.84
7.4.330.0060.00015.55
7.4.320.0000.00616.46
7.4.300.0000.00616.50
7.4.290.0000.00716.49
7.4.280.0030.00516.48
7.4.270.0030.00316.53
7.4.260.0050.00516.43
7.4.250.0040.00416.45
7.4.240.0000.00616.43
7.4.230.0040.00416.52
7.4.220.0090.00916.31
7.4.210.0120.00816.36
7.4.200.0040.00416.47
7.4.160.0130.00416.44
7.4.150.0070.01017.40
7.4.140.0130.00817.86
7.4.130.0110.00816.27
7.4.120.0090.01116.39
7.4.110.0070.01016.36
7.4.100.0130.01016.28
7.4.90.0110.01116.56
7.4.80.0120.00919.39
7.4.70.0070.00916.49
7.4.60.0080.00816.46
7.4.50.0130.00316.30
7.4.40.0090.00916.45
7.4.30.0110.00616.44
7.4.00.0120.00414.83
7.3.330.0020.00213.09
7.3.320.0000.00513.25
7.3.310.0030.00316.05
7.3.300.0070.00016.25
7.3.290.0090.00516.22
7.3.280.0070.00916.21
7.3.270.0080.00817.40
7.3.260.0090.00816.25
7.3.250.0080.01016.30
7.3.240.0140.00316.37
7.3.230.0000.01516.34
7.3.210.0090.00616.50
7.3.200.0120.01116.19
7.3.190.0090.00916.22
7.3.180.0090.00616.29
7.3.170.0080.00816.37
7.3.160.0070.01016.13
7.3.120.0110.00714.92
7.3.110.0030.01614.75
7.3.100.0060.00914.80
7.3.90.0060.00914.75
7.3.80.0120.00614.46
7.3.70.0060.00914.50
7.3.60.0100.00014.53
7.3.50.0030.01014.87
7.3.40.0000.01014.66
7.3.30.0030.01014.64
7.3.20.0080.00816.34
7.3.10.0100.00316.48
7.3.00.0060.00716.68
7.2.330.0140.00316.49
7.2.320.0070.01516.25
7.2.310.0130.00316.40
7.2.300.0090.01216.52
7.2.290.0080.00916.22
7.2.250.0070.00714.75
7.2.240.0060.01214.76
7.2.230.0000.01114.75
7.2.220.0060.00914.81
7.2.210.0080.00814.57
7.2.200.0070.01014.81
7.2.190.0040.00814.88
7.2.180.0070.00714.80
7.2.170.0040.01414.98
7.2.130.0090.00616.91
7.2.120.0080.00316.73
7.2.110.0100.00316.89
7.2.100.0070.00416.81
7.2.90.0040.00716.85
7.2.80.0000.00816.51
7.2.70.0070.01016.56
7.2.60.0060.00616.68
7.2.50.0080.00416.72
7.2.40.0070.00716.86
7.2.30.0090.00616.66
7.2.20.0040.00716.69
7.2.10.0040.00816.75
7.2.00.0050.00717.78
7.1.330.0030.01015.82
7.1.320.0030.00915.66
7.1.310.0070.00415.94
7.1.300.0030.00915.77
7.1.290.0030.00915.53
7.1.280.0070.00715.63
7.1.270.0090.00615.79
7.1.260.0040.00815.51
7.1.250.0100.00315.82
7.1.200.0070.00715.84
7.1.100.0070.00717.99
7.1.70.0080.00517.11
7.1.60.0140.01434.96
7.1.50.0160.01234.85
7.1.40.0250.00434.30
7.1.30.0190.00934.40
7.1.20.0160.01334.63
7.1.10.0040.00816.44
7.1.00.0070.00716.53
7.0.200.0060.00916.63
7.0.190.0030.01116.41
7.0.180.0070.00716.18
7.0.170.0030.01116.34
7.0.160.0080.00616.44
7.0.150.0000.01816.15
7.0.140.0070.00716.49
7.0.130.0100.00616.54
7.0.120.0060.00916.57
7.0.110.0090.00616.27
7.0.100.0090.00616.33
7.0.90.0060.00616.35
7.0.80.0080.00816.45
7.0.70.0030.00916.19
7.0.60.0090.00916.27
7.0.50.0100.00316.50
7.0.40.0030.01016.51
7.0.30.0000.01316.38
7.0.20.0000.01316.41
7.0.10.0040.00816.45
7.0.00.0040.00816.45

preferences:
40.85 ms | 401 KiB | 5 Q