3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prop_def['type'] = [NULL, 'string']; $type = $prop_def['type'] ?? 'null'; \var_dump($type);

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.30.0130.00618.91
8.4.20.0070.01419.27
8.4.10.0000.01519.41
8.3.160.0060.01217.07
8.3.150.0070.01117.29
8.3.140.0090.00616.68
8.3.130.0050.00318.49
8.3.120.0110.00419.21
8.3.110.0060.00320.94
8.3.100.0000.00916.66
8.3.90.0380.01026.77
8.3.80.0370.01126.77
8.3.70.0300.01326.77
8.3.60.0450.00326.77
8.3.50.0400.00826.77
8.3.40.0390.01226.77
8.3.30.0340.00926.77
8.3.20.0360.00326.77
8.3.10.0450.00026.77
8.3.00.0220.01126.77
8.2.270.0030.00717.41
8.2.260.0110.00316.71
8.2.250.0060.00318.56
8.2.240.0040.01118.33
8.2.230.0040.01522.58
8.2.220.0100.00024.06
8.2.210.0250.00426.77
8.2.200.0210.00626.77
8.2.190.0290.00726.77
8.2.180.0350.00726.77
8.2.170.0180.01126.77
8.2.160.0250.00526.77
8.2.150.0190.00926.77
8.2.140.0290.00026.77
8.2.130.0350.00826.77
8.2.120.0280.00626.77
8.2.110.0150.00526.77
8.2.100.0190.00026.77
8.2.90.0180.00526.77
8.2.80.0220.00326.77
8.2.70.0140.00726.77
8.2.60.0220.00026.77
8.2.50.0180.00426.77
8.2.40.0240.01526.77
8.2.30.0400.00726.77
8.2.20.0300.00426.77
8.2.10.0260.00626.77
8.2.00.0200.00526.77
8.1.310.0110.00718.05
8.1.300.0040.00416.30
8.1.290.0180.00826.77
8.1.280.0330.00326.77
8.1.270.0140.01126.77
8.1.260.0200.00026.77
8.1.250.0200.00026.77
8.1.240.0310.01026.77
8.1.230.0350.00626.77
8.1.220.0320.01126.77
8.1.210.0350.00826.77
8.1.200.0380.00726.77
8.1.190.0460.00426.77
8.1.180.0390.00626.77
8.1.170.0340.00026.77
8.1.160.0160.01626.77
8.1.150.0340.00326.77
8.1.140.0210.01826.77
8.1.130.0310.00726.77
8.1.120.0320.00526.77
8.1.110.0320.00626.77
8.1.100.0280.01026.77
8.1.90.0270.01226.77
8.1.80.0270.01226.77
8.1.70.0310.00426.77
8.1.60.0330.00826.77
8.1.50.0280.00026.77
8.1.40.0340.00826.77
8.1.30.0330.00926.77
8.1.20.0330.00826.77
8.1.10.0280.01426.77
8.1.00.0330.00826.77

preferences:
29.77 ms | 403 KiB | 5 Q