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']) { array_splice($array['journal_entries_strategy_conditions'], $i, 1); } } 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.3.130.0040.00418.48
8.3.120.0040.00420.85
8.3.110.0080.00420.94
8.3.100.0050.00316.38
8.3.90.0110.00726.77
8.3.80.0030.00617.97
8.3.70.0090.00618.43
8.3.60.0100.00616.50
8.3.50.0110.00716.85
8.3.40.0070.01119.93
8.3.30.0120.00318.79
8.3.20.0050.00324.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.250.0120.00318.88
8.2.240.0100.01017.27
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0070.00416.38
8.2.190.0140.00716.80
8.2.180.0160.00616.63
8.2.170.0070.00719.09
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0090.00021.03
8.2.100.0110.00017.78
8.2.90.0030.00617.91
8.2.80.0060.00320.07
8.2.70.0030.00617.75
8.2.60.0000.00817.63
8.2.50.0030.00517.63
8.2.40.0130.00317.62
8.2.30.0110.00517.63
8.2.20.0160.00017.63
8.2.10.0170.00017.62
8.2.00.0110.00517.62
8.1.300.0030.00516.16
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0020.00524.66
8.1.260.0070.01028.09
8.1.250.0000.00828.09
8.1.240.0030.00622.65
8.1.230.0060.00620.94
8.1.220.0000.00817.74
8.1.210.0060.00319.03
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0130.00417.62
8.1.160.0000.01917.62
8.1.150.0170.00017.62
8.1.140.0140.00417.62
8.1.130.0130.00417.62
8.1.120.0160.00017.62
8.1.110.0100.00617.62
8.1.100.0110.00617.62
8.1.90.0140.00317.62
8.1.80.0110.00417.62
8.1.70.0050.01117.62
8.1.60.0150.00317.62
8.1.50.0150.00417.62
8.1.40.0140.00317.62
8.1.30.0140.00717.62
8.1.20.0080.01217.62
8.1.10.0110.00617.62
8.1.00.0100.00717.62
8.0.300.0040.00419.81
8.0.290.0040.00416.75
8.0.280.0130.00417.62
8.0.270.0120.00517.62
8.0.260.0210.00017.62
8.0.250.0080.00817.62
8.0.240.0130.00617.62
8.0.230.0180.00317.62
8.0.220.0100.00517.62
8.0.210.0100.00717.62
8.0.200.0160.00017.62
8.0.190.0120.00417.62
8.0.180.0130.00417.62
8.0.170.0130.00317.62
8.0.160.0160.00017.62
8.0.150.0100.00617.62
8.0.140.0110.00417.62
8.0.130.0100.00717.62
8.0.120.0140.00417.62
8.0.110.0120.00317.62
8.0.100.0140.00317.62
8.0.90.0080.00817.62
8.0.80.0100.00717.62
8.0.70.0110.00517.62
8.0.60.0090.00617.62
8.0.50.0120.00417.62
8.0.30.0110.00717.62
8.0.20.0130.00317.62
8.0.10.0030.01217.62

preferences:
41.28 ms | 403 KiB | 5 Q