3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conditions = unserialize("a:4:{i:0;a:3:{s:5:"field";s:14:" year_of_entry";s:9:"condition";s:1:"=";s:5:"value";s:4:"2015";}i:1;a:3:{s:5:"field";s:6:"status";s:9:"condition";s:1:"=";s:5:"value";s:2:"UF";}i:2;a:3:{s:5:"field";s:17:" initial_decision";s:9:"condition";s:1:"=";s:5:"value";s:1:"U";}i:3;a:3:{s:5:"field";s:12:" last_status";s:9:"condition";s:2:"!=";s:5:"value";s:2:"UI";}}"); if (is_array($conditions)) { foreach ($conditions as $c) { $parts = explode('.', $c['field']); if (count($parts) == 1) { $c['field'] = 'Application.'.trim($c['field']); } switch ($c['condition']) { case '=': $key = $c['field']; $criteria[$key] = $c['value']; break; case '!=': $key = $c['field'] . ' ' . $c['condition']; $criteria[$key] = $c['value']; break; case 'in': $key = $c['field']; $values = explode(',', $c['value']); foreach ($values as $k => $v) { $values[$k] = trim($v); } $criteria[$key] = $values; break; } } } //check the database adding the recent records id to the array $criteria['Application.id'] = 1; var_dump($criteria);

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)
5.4.340.0050.03612.01
5.4.320.0080.03412.49
5.4.310.0070.03712.49
5.4.300.0070.03512.50
5.4.290.0040.03912.49
5.4.280.0060.03512.39
5.4.270.0050.03612.39
5.4.260.0050.03812.39
5.4.250.0050.03812.39
5.4.240.0130.04312.39
5.4.230.0060.04112.38
5.4.220.0060.04112.38
5.4.210.0070.03912.38
5.4.200.0050.03812.38
5.4.190.0070.04712.38
5.4.180.0070.03712.38
5.4.170.0070.03612.39
5.4.160.0050.04212.38
5.4.150.0090.04212.38
5.4.140.0050.04812.07
5.4.130.0060.04912.05
5.4.120.0070.03812.01
5.4.110.0070.03812.01
5.4.100.0050.03512.01
5.4.90.0080.03612.01
5.4.80.0060.03812.01
5.4.70.0030.03812.00
5.4.60.0030.03912.01
5.4.50.0030.04212.01
5.4.40.0080.03211.99
5.4.30.0050.03611.99
5.4.20.0070.03911.98
5.4.10.0060.03411.99
5.4.00.0050.03711.48
5.3.290.0050.04312.80
5.3.280.0070.04112.71
5.3.270.0050.04212.72
5.3.260.0060.04212.72
5.3.250.0080.03712.72
5.3.240.0130.04012.72
5.3.230.0060.04112.71
5.3.220.0090.04712.68
5.3.210.0080.04412.68
5.3.200.0110.04712.68
5.3.190.0050.04212.68
5.3.180.0060.04412.67
5.3.170.0080.03812.67
5.3.160.0070.04512.68
5.3.150.0090.03812.67
5.3.140.0050.03912.66
5.3.130.0050.04412.65
5.3.120.0030.04512.66
5.3.110.0080.04312.66
5.3.100.0150.06112.12
5.3.90.0190.09212.08
5.3.80.0080.03912.07
5.3.70.0100.03912.07
5.3.60.0170.04812.07
5.3.50.0070.03912.00
5.3.40.0070.04012.00
5.3.30.0080.03511.95
5.3.20.0130.04211.73
5.3.10.0090.03411.70
5.3.00.0070.04111.68
5.2.170.0110.0339.19
5.2.160.0050.0349.19
5.2.150.0200.0659.18
5.2.140.0080.0369.18
5.2.130.0060.0289.14
5.2.120.0110.0239.14
5.2.110.0070.0369.15
5.2.100.0120.0369.14
5.2.90.0040.0399.14
5.2.80.0080.0379.14
5.2.70.0080.0489.14
5.2.60.0120.0359.09
5.2.50.0080.0539.06
5.2.40.0040.0379.04
5.2.30.0040.0349.02
5.2.20.0020.0339.00
5.2.10.0070.0278.93
5.2.00.0060.0308.79
5.1.60.0070.0328.07
5.1.50.0100.0248.07
5.1.40.0060.0318.05
5.1.30.0070.0288.40
5.1.20.0060.0518.42
5.1.10.0050.0288.15
5.1.00.0060.0368.14
5.0.50.0010.0306.62
5.0.40.0050.0226.48
5.0.30.0040.0546.29
5.0.20.0070.0376.27
5.0.10.0100.0376.24
5.0.00.0020.0356.23
4.4.90.0050.0184.78
4.4.80.0020.0184.75
4.4.70.0030.0174.76
4.4.60.0040.0144.76
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0050.0154.76
4.4.20.0050.0144.84
4.4.10.0040.0164.85
4.4.00.0040.0244.76
4.3.110.0030.0154.67
4.3.100.0020.0164.67
4.3.90.0020.0174.64
4.3.80.0020.0254.58
4.3.70.0030.0154.63
4.3.60.0080.0324.63
4.3.50.0050.0204.63
4.3.40.0040.0314.54
4.3.30.0040.0193.29
4.3.20.0030.0223.26
4.3.10.0040.0213.22
4.3.00.0030.0237.35

preferences:
143.17 ms | 1394 KiB | 7 Q