3v4l.org

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

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.4.120.0130.00724.00
8.4.110.0120.00720.56
8.4.100.0130.00717.89
8.4.90.0100.01320.44
8.4.80.0040.00718.60
8.4.70.0100.00819.50
8.4.60.0070.00618.77
8.4.50.0110.00918.53
8.4.40.0120.00918.39
8.4.30.0100.01020.75
8.4.20.0100.01019.66
8.4.10.0210.00019.71
8.3.250.0100.00918.68
8.3.240.0030.00716.99
8.3.230.0110.00516.98
8.3.220.0120.00719.04
8.3.210.0130.00616.55
8.3.200.0040.00716.73
8.3.190.0090.00518.96
8.3.180.0050.00317.22
8.3.170.0110.00420.81
8.3.160.0150.00017.23
8.3.150.0000.01817.04
8.3.140.0110.00716.77
8.3.130.0040.00416.82
8.3.120.0120.00319.10
8.3.110.0000.00820.94
8.3.100.0120.00424.06
8.3.90.0060.00326.77
8.3.80.0060.00318.43
8.3.70.0110.00716.63
8.3.60.0430.01125.92
8.3.50.0180.00425.92
8.3.40.0270.01425.92
8.3.30.0410.00625.92
8.3.20.0440.00325.92
8.3.10.0330.01125.92
8.3.00.0410.00725.92
8.2.290.0100.00617.15
8.2.280.0110.00816.61
8.2.270.0110.00717.06
8.2.260.0000.00818.27
8.2.250.0050.00318.69
8.2.240.0070.00418.71
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0100.01026.77
8.2.200.0030.00618.54
8.2.190.0120.00316.75
8.2.180.0510.00325.92
8.2.170.0470.00825.92
8.2.160.0300.02125.92
8.2.150.0310.00725.92
8.2.140.0280.01425.92
8.2.130.0320.01325.92
8.2.120.0290.01325.92
8.2.110.0300.01125.92
8.2.100.0370.00925.92
8.2.90.0370.01025.92
8.2.80.0390.00825.92
8.2.70.0340.01325.92
8.2.60.0540.00325.92
8.2.50.0390.01025.92
8.2.40.0480.00325.92
8.2.30.0240.00925.92
8.2.20.0320.00925.92
8.2.10.0320.01325.92
8.2.00.0310.01425.92
8.1.330.0050.00316.33
8.1.320.0090.01116.16
8.1.310.0030.01016.84
8.1.300.0060.00318.32
8.1.290.0090.00030.84
8.1.280.0400.00625.92
8.1.270.0250.02225.92
8.1.260.0340.00825.92
8.1.250.0420.00325.92
8.1.240.0310.01225.92
8.1.230.0260.01025.92
8.1.220.0300.00625.92
8.1.210.0320.00425.92
8.1.200.0310.01025.92
8.1.190.0270.01225.92
8.1.180.0320.00725.92
8.1.170.0290.00625.92
8.1.160.0280.01425.92
8.1.150.0330.00725.92
8.1.140.0360.00725.92
8.1.130.0300.00925.92
8.1.120.0330.00725.92
8.1.110.0300.01125.92
8.1.100.0390.00325.92
8.1.90.0290.01325.92
8.1.80.0350.00625.92
8.1.70.0400.00325.92
8.1.60.0340.01425.92
8.1.50.0460.01825.92
8.1.40.0530.00625.92
8.1.30.0440.00325.92
8.1.20.0370.00725.92
8.1.10.0380.00925.92
8.1.00.0330.01325.92

preferences:
27.22 ms | 403 KiB | 5 Q