3v4l.org

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

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.0200.00318.05
8.3.60.0180.00416.63
8.3.50.0070.00916.35
8.3.40.0110.00418.71
8.3.30.0120.00918.67
8.3.20.0140.00420.16
8.3.10.0080.00021.92
8.3.00.0040.00421.95
8.2.180.0090.00616.32
8.2.170.0070.01422.96
8.2.160.0140.00020.49
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0070.00021.00
8.2.120.0090.00926.35
8.2.110.0050.00521.18
8.2.100.0070.00717.72
8.2.90.0030.00619.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0040.00420.56
8.2.30.0040.00420.88
8.2.20.0040.00417.98
8.2.10.0070.00017.80
8.2.00.0040.00417.92
8.1.280.0070.00725.92
8.1.270.0070.00022.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00024.02
8.1.230.0090.00319.08
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0030.00616.84
8.1.180.0040.00418.10
8.1.170.0040.00418.88
8.1.160.0040.00418.93
8.1.150.0020.00520.60
8.1.140.0030.00619.32
8.1.130.0000.00718.81
8.1.120.0000.00717.36
8.1.110.0000.00717.27
8.1.100.0050.00217.38
8.1.90.0040.00317.25
8.1.80.0000.00817.32
8.1.70.0040.00417.37
8.1.60.0040.00417.50
8.1.50.0050.00317.45
8.1.40.0000.00717.45
8.1.30.0000.00817.44
8.1.20.0040.00417.53
8.1.10.0060.00317.24
8.1.00.0040.00417.16
8.0.300.0070.00018.98
8.0.290.0050.00216.58
8.0.280.0000.00718.18
8.0.270.0070.00017.08
8.0.260.0030.00316.55
8.0.250.0050.00316.81
8.0.240.0000.00816.84
8.0.230.0030.00316.80
8.0.220.0040.00416.78
8.0.210.0030.00316.65
8.0.200.0000.00716.81
8.0.190.0050.00316.75
8.0.180.0030.00516.75
8.0.170.0080.00016.66
8.0.160.0070.00016.75
8.0.150.0070.00016.61
8.0.140.0000.00716.61
8.0.130.0060.00013.18
8.0.120.0040.00416.73
8.0.110.0070.00016.71
8.0.100.0000.00716.59
8.0.90.0050.00216.87
8.0.80.0060.01916.73
8.0.70.0000.00716.68
8.0.60.0040.00416.65
8.0.50.0000.00716.80
8.0.30.0100.00817.02
8.0.20.0100.01017.40
8.0.10.0000.00816.89
8.0.00.0040.01416.61
7.4.330.0060.00015.55
7.4.320.0000.00616.48
7.4.300.0030.00316.33
7.4.290.0040.00416.32
7.4.280.0000.00816.41
7.4.270.0020.00516.41
7.4.260.0000.00716.46
7.4.250.0070.00016.29
7.4.240.0030.00316.38
7.4.230.0080.00016.43
7.4.220.0100.01616.34
7.4.210.0160.00016.35
7.4.200.0000.00716.43
7.4.160.0070.01016.39
7.4.150.0130.00617.40
7.4.140.0090.01317.86
7.4.130.0100.01016.38
7.4.120.0190.00316.43
7.4.110.0030.01316.45
7.4.100.0090.00916.41
7.4.90.0130.00316.25
7.4.80.0120.00619.39
7.4.70.0000.01516.18
7.4.60.0060.00916.26
7.4.50.0080.00416.43
7.4.40.0130.00316.28
7.4.30.0110.00516.50
7.4.00.0100.00314.90
7.3.330.0020.00213.20
7.3.320.0000.00513.21
7.3.310.0030.00316.25
7.3.300.0000.00716.32
7.3.290.0080.00716.20
7.3.280.0080.01016.23
7.3.270.0110.00717.40
7.3.260.0050.01116.29
7.3.250.0080.01116.42
7.3.240.0090.01116.25
7.3.230.0070.01116.55
7.3.210.0130.00316.29
7.3.200.0120.00316.30
7.3.190.0060.01116.30
7.3.180.0120.00916.21
7.3.170.0090.00616.48
7.3.160.0160.00616.37
7.2.330.0030.01816.15
7.2.320.0030.01416.59
7.2.310.0000.02216.25
7.2.300.0100.00716.42
7.2.290.0000.01616.58
7.2.60.0090.00616.82
7.2.00.0000.01119.32
7.1.200.0030.01215.78
7.1.100.0060.00618.10
7.1.70.0140.00317.07
7.1.60.0270.01535.04
7.1.50.0190.01634.63
7.1.40.0220.01934.18
7.1.30.0300.01334.42
7.1.20.0220.00934.52
7.1.10.0060.00916.18
7.1.00.0000.02216.52
7.0.200.0130.00716.50
7.0.190.0140.00416.68
7.0.180.0030.01516.11
7.0.170.0090.00616.13
7.0.160.0100.00616.21
7.0.150.0030.01316.09
7.0.140.0000.02016.36
7.0.130.0060.00916.37
7.0.120.0090.01016.26
7.0.110.0040.01216.04
7.0.100.0060.01216.16
7.0.90.0040.01116.18
7.0.80.0050.01216.30
7.0.70.0060.00916.00
7.0.60.0120.01015.81
7.0.50.0090.01216.37
7.0.40.0060.01016.34
7.0.30.0040.01516.36
7.0.20.0090.00616.15
7.0.10.0060.00916.14
7.0.00.0040.01116.29

preferences:
30.27 ms | 401 KiB | 5 Q