3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Scenario 1 $preferred_icon = 'test'; $plugin_data = null; var_dump( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ); // Scenario 2 $plugin_data = new stdClass(); $plugin_data->update = new stdClass(); $plugin_data->update->icons = null; var_dump( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ); // Now try it without the `empty()`. // Scenario 3 var_dump( $plugin_data->update->icons[ $preferred_icon ] ); // Scenario 5 $plugin_data = new stdClass(); $plugin_data->update = new stdClass(); var_dump( $plugin_data->update->icons[ $preferred_icon ] );

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.110.0100.00020.94
8.3.100.0070.00324.06
8.3.90.0030.00526.77
8.3.80.0060.00316.50
8.3.70.0120.00318.43
8.3.60.0100.00718.43
8.3.50.0070.01116.90
8.3.40.0090.00621.90
8.3.30.0150.00020.25
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0030.00626.16
8.2.230.0140.00422.58
8.2.220.0040.00437.54
8.2.210.0150.00626.77
8.2.200.0090.00316.50
8.2.190.0110.01116.61
8.2.180.0150.00616.88
8.2.170.0070.00722.96
8.2.160.0100.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00819.76
8.2.110.0060.00322.12
8.2.100.0120.00017.97
8.2.90.0130.00918.77
8.2.80.0180.00018.77
8.2.70.0090.00918.77
8.2.60.0150.00418.77
8.2.50.0080.01218.77
8.2.40.0000.01818.77
8.2.30.0170.00018.77
8.2.20.0090.00918.77
8.2.10.0180.00018.77
8.2.00.0140.00318.77
8.1.290.0070.00430.84
8.1.280.0110.00425.92
8.1.270.0090.00023.71
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.83
8.1.230.0040.00717.89
8.1.220.0110.00818.77
8.1.210.0170.00318.77
8.1.200.0120.00618.77
8.1.190.0100.00718.77
8.1.180.0090.00918.77
8.1.170.0120.00818.77
8.1.160.0160.00318.77
8.1.150.0210.00018.77
8.1.140.0170.00318.77
8.1.130.0150.00318.77
8.1.120.0130.00518.77
8.1.110.0150.00418.77
8.1.100.0080.00818.77
8.1.90.0060.00918.77
8.1.80.0120.00518.77
8.1.70.0130.00318.77
8.1.60.0160.00318.77
8.1.50.0130.00418.77
8.1.40.0160.00318.77
8.1.30.0160.00318.77
8.1.20.0150.00418.77
8.1.10.0160.00218.77
8.1.00.0120.00518.77
8.0.300.0000.00818.77
8.0.290.0110.00618.77
8.0.280.0110.00618.77
8.0.270.0140.00318.77
8.0.260.0120.00618.77
8.0.250.0180.00018.77
8.0.240.0120.00618.77
8.0.230.0060.01118.77
8.0.220.0130.00318.77
8.0.210.0160.00318.77
8.0.200.0110.00618.77
8.0.190.0110.00718.77
8.0.180.0110.00518.77
8.0.170.0100.00518.77
8.0.160.0130.00418.77
8.0.150.0080.01018.77
8.0.140.0160.00018.77
8.0.130.0160.00018.77
8.0.120.0060.01218.77
8.0.110.0110.00418.77
8.0.100.0130.00518.77
8.0.90.0080.00818.77
8.0.80.0110.00618.77
8.0.70.0100.00718.77
8.0.60.0130.00418.77
8.0.50.0130.00318.77
8.0.30.0170.00018.77
8.0.20.0130.00318.77
8.0.10.0090.00918.77

preferences:
45.99 ms | 403 KiB | 5 Q