3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'ticket_number' => 'sdfsdfsdf 2', 'strategy_id' => '5', 'journal_entries_strategy_conditions' => [ 0 => [ 'strategies_condition_id' => '' ], 1 => [ 'strategies_condition_id' => '1' ] ], 'timeframe' => '', ]; foreach ($array['journal_entries_strategy_conditions'] as $i => $row) { if (!$row['strategies_condition_id']) { unset($array['journal_entries_strategy_conditions'][$i]); } } var_export($array);

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.20.0150.00625.86
8.4.10.0100.01023.52
8.3.150.0070.01118.73
8.3.140.0060.01216.45
8.3.130.0080.00018.49
8.3.120.0090.00018.97
8.3.110.0040.01520.94
8.3.100.0050.00324.06
8.3.90.0060.00326.77
8.3.80.0060.00318.31
8.3.70.0120.00318.43
8.3.60.0070.00716.63
8.3.50.0150.00618.61
8.3.40.0070.01319.96
8.3.30.0070.01318.73
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.270.0130.00616.55
8.2.260.0040.00418.76
8.2.250.0040.01118.38
8.2.240.0040.01417.05
8.2.230.0050.00522.58
8.2.220.0030.00637.54
8.2.210.0070.00026.77
8.2.200.0060.00318.16
8.2.190.0120.00316.58
8.2.180.0110.00416.38
8.2.170.0070.01319.13
8.2.160.0000.01422.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0060.00319.27
8.2.100.0080.00317.97
8.2.90.0000.00818.34
8.2.80.0030.00618.16
8.2.70.0080.00017.63
8.2.60.0040.00417.63
8.2.50.0060.00317.75
8.2.40.0060.00617.75
8.2.30.0100.00017.63
8.2.20.0040.00417.75
8.2.10.0060.00617.62
8.2.00.0060.00317.88
8.1.310.0030.00616.81
8.1.300.0040.01617.82
8.1.290.0090.00030.84
8.1.280.0120.00625.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.59
8.1.230.0070.00721.04
8.1.220.0050.00317.76
8.1.210.0060.00318.79
8.1.200.0030.00617.23
8.1.190.0130.00616.84
8.1.180.0040.00418.10
8.1.170.0070.00717.62
8.1.160.0080.00417.62
8.1.150.0100.00317.62
8.1.140.0050.00917.62
8.1.130.0130.00017.62
8.1.120.0120.00417.62
8.1.110.0140.00017.62
8.1.100.0000.01617.62
8.1.90.0170.00017.62
8.1.80.0090.00317.62
8.1.70.0110.00317.62
8.1.60.0120.00417.62
8.1.50.0140.00017.62
8.1.40.0140.00317.62
8.1.30.0130.00217.62
8.1.20.0100.00717.62
8.1.10.0110.00417.62
8.1.00.0100.00617.62
8.0.300.0000.00720.04
8.0.290.0060.00316.58
8.0.280.0120.00217.62
8.0.270.0150.00017.62
8.0.260.0000.01417.62
8.0.250.0100.00517.62
8.0.240.0100.00517.62
8.0.230.0150.00017.62
8.0.220.0130.00017.62
8.0.210.0040.00917.62
8.0.200.0090.00417.62
8.0.190.0110.00417.62
8.0.180.0160.00017.62
8.0.170.0030.01217.62
8.0.160.0070.00717.62
8.0.150.0120.00317.62
8.0.140.0100.00517.62
8.0.130.0120.00317.62
8.0.120.0140.00017.62
8.0.110.0100.00317.62
8.0.100.0110.00317.62
8.0.90.0130.00217.62
8.0.80.0130.00017.62
8.0.70.0060.01017.62
8.0.60.0060.00617.62
8.0.50.0100.00517.62
8.0.30.0100.00317.62
8.0.20.0080.00417.62
8.0.10.0130.00317.62

preferences:
28.25 ms | 403 KiB | 5 Q