3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function optional(?string $string) { } function not_optional(string $string = null) { } optional(null); not_optional();

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.70.0060.00916.38
8.3.60.0090.00918.50
8.3.50.0070.01418.05
8.3.40.0130.00318.65
8.3.30.0120.00318.57
8.3.20.0070.00021.87
8.3.10.0040.00421.97
8.3.00.0080.00023.48
8.2.180.0100.00716.32
8.2.170.0140.00018.88
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00620.81
8.2.120.0080.00026.35
8.2.110.0000.00921.12
8.2.100.0030.00917.59
8.2.90.0000.00817.78
8.2.80.0000.00817.97
8.2.70.0100.00017.68
8.2.60.0000.00717.91
8.2.50.0090.00018.10
8.2.40.0040.00422.15
8.2.30.0000.00719.13
8.2.20.0050.00318.06
8.2.10.0050.00217.98
8.2.00.0000.00817.91
8.1.280.0110.00425.92
8.1.270.0070.00023.84
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.34
8.1.230.0090.00322.72
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00918.48
8.1.160.0000.00818.67
8.1.150.0000.00819.07
8.1.140.0000.00817.54
8.1.130.0000.00717.42
8.1.120.0070.00017.38
8.1.110.0060.00317.34
8.1.100.0000.00717.35
8.1.90.0000.00717.27
8.1.80.0040.00417.32
8.1.70.0040.00417.21
8.1.60.0100.00017.39
8.1.50.0040.00417.49
8.1.40.0060.00317.52
8.1.30.0050.00317.41
8.1.20.0040.00417.56
8.1.10.0080.00017.40
8.1.00.0060.00317.20
8.0.300.0000.00719.68
8.0.290.0040.00416.63
8.0.280.0030.00318.23
8.0.270.0060.00316.99
8.0.260.0030.00316.56
8.0.250.0000.00716.80
8.0.240.0000.00716.72
8.0.230.0060.00616.85
8.0.220.0090.00016.81
8.0.210.0000.00816.72
8.0.200.0030.00316.82
8.0.190.0000.00816.77
8.0.180.0000.00716.82
8.0.170.0030.00616.66
8.0.160.0000.00716.65
8.0.150.0000.00816.63
8.0.140.0070.00016.60
8.0.130.0000.00513.20
8.0.120.0070.00016.73
8.0.110.0030.00616.60
8.0.100.0040.00416.75
8.0.90.0050.00216.63
8.0.80.0130.00316.75
8.0.70.0070.00016.63
8.0.60.0030.00616.72
8.0.50.0040.00416.87
8.0.30.0090.01016.96
8.0.20.0080.01117.40
8.0.10.0000.00716.91
8.0.00.0080.01116.53
7.4.330.0000.00515.55
7.4.320.0000.00616.25
7.4.300.0060.00016.35
7.4.290.0000.00716.55
7.4.280.0050.00216.43
7.4.270.0070.00316.43
7.4.260.0040.00416.35
7.4.250.0000.00716.50
7.4.240.0000.00716.59
7.4.230.0040.00416.37
7.4.220.0080.00016.34
7.4.210.0070.00716.57
7.4.200.0030.00316.18
7.4.160.0070.01016.27
7.4.140.0130.00517.86
7.4.130.0060.01216.43
7.4.120.0080.00916.46
7.4.110.0140.00316.56
7.4.100.0160.00716.36
7.4.90.0030.01416.30
7.4.80.0120.00619.39
7.4.70.0060.00916.40
7.4.60.0060.00916.36
7.4.50.0000.01816.41
7.4.40.0080.00816.26
7.4.00.0090.00914.73
7.3.330.0050.00013.25
7.3.320.0000.00613.05
7.3.310.0000.00716.28
7.3.300.0000.00816.29
7.3.290.0070.00016.24
7.3.280.0090.00716.22
7.3.260.0100.00816.34
7.3.240.0090.00816.35
7.3.230.0060.01116.36
7.3.210.0110.01116.50
7.3.200.0030.01316.32
7.3.190.0060.01016.25
7.3.180.0100.00716.36
7.3.170.0120.00416.52
7.3.160.0110.00716.15
7.3.120.0160.00314.89
7.3.110.0040.01414.66
7.3.100.0030.01014.75
7.3.90.0000.01114.91
7.3.80.0110.00414.98
7.3.70.0060.00314.51
7.3.60.0070.00714.70
7.3.50.0090.00014.66
7.3.40.0000.01114.49
7.3.30.0000.01314.80
7.3.20.0030.00716.61
7.3.10.0050.00916.49
7.3.00.0030.01016.44
7.2.330.0110.00616.46
7.2.320.0160.00616.63
7.2.310.0120.00416.43
7.2.300.0070.01116.61
7.2.290.0110.01116.27
7.2.250.0110.00714.83
7.2.240.0070.01014.80
7.2.230.0080.00615.08
7.2.220.0000.01014.89
7.2.210.0070.00715.07
7.2.200.0060.00715.02
7.2.190.0030.00715.01
7.2.180.0070.01114.84
7.2.170.0060.00914.79
7.2.130.0060.00616.77
7.2.120.0040.01116.66
7.2.110.0070.00316.50
7.2.100.0110.00316.73
7.2.90.0040.01216.44
7.2.80.0080.00816.83
7.2.70.0070.00716.91
7.2.60.0330.00716.79
7.2.50.0060.01216.76
7.2.40.0750.00817.25
7.2.30.0730.00617.31
7.2.20.0720.01017.11
7.2.10.0630.00617.32
7.2.00.0600.01517.18
7.1.330.0080.00515.54
7.1.320.0030.00615.60
7.1.310.0000.01315.55
7.1.300.0130.00315.58
7.1.290.0070.01015.65
7.1.280.0040.01115.52
7.1.270.0060.00615.55
7.1.260.0070.00715.70
7.1.250.0000.01015.66
7.1.200.0070.00315.69
7.1.160.1450.01116.88
7.1.150.1240.01616.55
7.1.140.1180.01016.82
7.1.130.1110.01116.82
7.1.120.1810.01216.75
7.1.110.1390.00716.05
7.1.100.1920.01016.13
7.1.90.2100.01216.22
7.1.80.1940.01216.21
7.1.70.2140.01115.08
7.1.60.1870.01833.31
7.1.50.3300.01632.99
7.1.40.3380.01332.47
7.1.30.2680.01232.54
7.1.20.3230.01332.57
7.1.10.2600.00914.49
7.1.00.2730.01214.78

preferences:
61.27 ms | 400 KiB | 5 Q