3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_name = '1'; $preferred_name = ''; echo $preferred_name ?? $first_name;

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.5.00.0110.01220.08
8.4.150.0020.00014.05
8.4.140.0230.00717.40
8.4.130.0080.01317.66
8.4.120.0130.00620.64
8.4.110.0140.00620.45
8.4.100.0070.00718.57
8.4.90.0120.00820.36
8.4.80.0090.00318.46
8.4.70.0100.00717.84
8.4.60.0110.00518.73
8.4.50.0070.00918.66
8.4.40.0050.00317.55
8.4.30.0100.01018.52
8.4.20.0070.01317.76
8.4.10.0060.00319.40
8.3.280.0120.00718.22
8.3.270.0100.00916.36
8.3.260.0110.00816.67
8.3.250.0110.00818.70
8.3.240.0160.00316.44
8.3.230.0130.00616.57
8.3.220.0130.00518.82
8.3.210.0030.00616.30
8.3.200.0060.00216.61
8.3.190.0060.00417.04
8.3.180.0110.00816.94
8.3.170.0110.00718.74
8.3.160.0030.01417.22
8.3.150.0130.00617.06
8.3.140.0120.00616.33
8.3.130.0100.00518.34
8.3.120.0110.00020.47
8.3.110.0120.00320.94
8.3.100.0030.00618.23
8.3.90.0160.00016.43
8.3.80.0080.00417.97
8.3.70.0040.01918.43
8.3.60.0110.00718.18
8.3.50.0150.00016.38
8.3.40.0130.00620.38
8.3.30.0100.00320.20
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0100.01028.09
8.2.290.0090.00220.47
8.2.280.0130.00518.42
8.2.270.0090.00917.38
8.2.260.0110.00716.39
8.2.250.0060.00316.48
8.2.240.0060.00317.18
8.2.230.0030.00622.58
8.2.220.0100.00024.06
8.2.210.0030.00526.77
8.2.200.0060.00316.63
8.2.190.0150.00616.58
8.2.180.0100.00716.38
8.2.170.0120.00318.63
8.2.160.0070.01022.96
8.2.150.0100.00025.66
8.2.140.0050.00324.66
8.2.130.0130.00628.09
8.2.120.0140.00728.09
8.2.110.0130.00728.09
8.2.100.0100.00728.09
8.2.90.0060.01228.09
8.2.80.0150.00328.09
8.2.70.0070.01028.09
8.2.60.0040.01828.09
8.2.50.0090.00628.09
8.2.40.0140.00728.09
8.2.30.0130.00328.09
8.2.20.0100.00628.09
8.2.10.0130.00328.09
8.2.00.0120.00328.09
8.1.330.0090.01121.86
8.1.320.0090.00916.28
8.1.310.0090.00618.68
8.1.300.0030.00616.16
8.1.290.0000.00818.88
8.1.280.0030.01025.92
8.1.270.0030.00622.00
8.1.260.0050.00328.09
8.1.250.0080.00828.09
8.1.240.0040.00428.09
8.1.230.0060.00328.09
8.1.220.0100.00028.09
8.1.210.0030.00728.09
8.1.200.0040.00728.09
8.1.190.0110.00028.09
8.1.180.0070.00328.09
8.1.170.0070.00328.09
8.1.160.0050.00528.09
8.1.150.0040.00428.09
8.1.140.0000.00828.09
8.1.130.0040.00428.09
8.1.120.0080.00028.09
8.1.110.0040.00428.09
8.1.100.0040.00428.09
8.1.90.0040.00428.09
8.1.80.0040.00428.09
8.1.70.0000.00828.09
8.1.60.0050.00328.09
8.1.50.0030.00528.09
8.1.40.0030.00528.09
8.1.30.0050.00328.09
8.1.20.0060.00328.09
8.1.10.0050.00328.09
8.1.00.0050.00328.09

preferences:
35.9 ms | 403 KiB | 5 Q