3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export($array['does']['not']['exist'] ?? 'nope'); echo "\n---\n"; var_export($obj->does->not->exist ?? 'nope'); echo "\n---\n"; var_export($obj->does[123]->not->exist[678]['foo'] ?? 'nope');

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.10.0100.00816.33
8.5.00.0110.01120.00
8.4.150.0030.00014.05
8.4.140.0160.00617.37
8.4.130.0140.00617.63
8.4.120.0090.01123.93
8.4.110.0120.00818.63
8.4.100.0140.00617.71
8.4.90.0050.00322.61
8.4.80.0060.00419.05
8.4.70.0110.00819.00
8.4.60.0120.00920.51
8.4.50.0070.01217.51
8.4.40.0130.00717.65
8.4.30.0190.00020.70
8.4.20.0100.01019.79
8.4.10.0060.00319.48
8.3.280.0130.01220.79
8.3.270.0140.00716.22
8.3.260.0070.00316.41
8.3.250.0050.00418.90
8.3.240.0100.00916.89
8.3.230.0080.00916.34
8.3.220.0060.00518.86
8.3.210.0120.00716.45
8.3.200.0120.00816.43
8.3.190.0110.00818.86
8.3.180.0140.00518.39
8.3.170.0060.01220.36
8.3.160.0120.00616.28
8.3.150.0090.00617.17
8.3.140.0040.00416.63
8.3.130.0050.00917.25
8.3.120.0000.00918.88
8.3.110.0030.00620.94
8.3.100.0160.00318.21
8.3.90.0040.00426.77
8.3.80.0090.00018.30
8.3.70.0040.01516.63
8.3.60.0110.00716.37
8.3.50.0110.00416.72
8.3.40.0200.00023.65
8.3.30.0100.01022.96
8.3.20.0150.00423.39
8.3.10.0090.00923.48
8.3.00.0210.00622.96
8.2.290.0220.00516.71
8.2.280.0080.00718.33
8.2.270.0150.00317.06
8.2.260.0080.00018.52
8.2.250.0000.00816.38
8.2.240.0040.00416.98
8.2.230.0040.00722.58
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0060.00316.50
8.2.190.0150.00016.58
8.2.180.0090.00616.38
8.2.170.0150.00022.96
8.2.160.0220.01322.96
8.2.150.0200.00822.96
8.2.140.0120.00922.96
8.2.130.0140.00722.96
8.2.120.0160.00622.96
8.2.110.0180.00322.96
8.2.100.0110.01122.96
8.2.90.0290.00422.96
8.2.80.0080.01222.96
8.2.70.0230.01222.96
8.2.60.0200.00622.96
8.2.50.0210.01122.96
8.2.40.0240.00022.96
8.2.30.0150.00722.96
8.2.20.0130.00322.96
8.2.10.0170.00722.96
8.2.00.0140.01022.96
8.1.330.0110.00815.95
8.1.320.0080.00817.76
8.1.310.0000.00818.54
8.1.300.0090.00619.43
8.1.290.0060.00330.84
8.1.280.0190.00325.92
8.1.270.0130.00723.97
8.1.260.0110.01123.68
8.1.250.0130.00723.65
8.1.240.0240.00322.96
8.1.230.0170.00722.96
8.1.220.0150.00622.96
8.1.210.0160.00922.96
8.1.200.0180.00422.96
8.1.190.0220.00022.96
8.1.180.0190.00822.96
8.1.170.0150.00922.96
8.1.160.0140.01022.96
8.1.150.0130.00922.96
8.1.140.0190.00622.96
8.1.130.0210.00322.96
8.1.120.0190.00422.96
8.1.110.0280.00722.96
8.1.100.0200.00722.96
8.1.90.0150.00922.96
8.1.80.0200.00322.96
8.1.70.0160.01222.96
8.1.60.0440.00022.96
8.1.50.0200.01022.96
8.1.40.0200.01022.96
8.1.30.0190.00622.96
8.1.20.0190.00422.96
8.1.10.0250.00422.96
8.1.00.0220.00622.96
7.4.330.0230.01016.19
7.3.100.0220.00516.18
7.1.330.0150.01016.18
5.6.400.0180.00716.18

preferences:
39.24 ms | 403 KiB | 5 Q