3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => array ( 'vehicle' => 'BUS NO.1', 'trip_name' => 'Trip00011', 'running_km' => '5000', ), 1 => array ( 'vehicle' => 'BUS NO.2', 'trip_name' => 'Trip00021', 'running_km' => '2400', ), 2 => array ( 'vehicle' => 'BUS NO.1', 'trip_name' => 'Trip00011', 'running_km' => '0', ), 3 => array ( 'vehicle' => 'BUS NO.2', 'trip_name' => 'Trip00011', 'running_km' => '0', ), 4 => array ( 'vehicle' => 'BUS NO.2', 'trip_name' => 'Trip00021', 'running_km' => '0', ), ); foreach($arr as $item){ $key = $item['vehicle'] . $item['trip_name']; if(isset($new[$key])){ if($item['running_km'] > $new[$key]['running_km']) $new[$key] = $item; }else{ $new[$key] = $item; } } $new = array_values($new); Var_dump($new);

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.01016.88
8.5.00.0120.00819.92
8.4.160.0110.01123.13
8.4.150.0020.00114.05
8.4.140.0110.01017.69
8.4.130.0060.00317.96
8.4.120.0120.00822.19
8.4.110.0090.01122.35
8.4.100.0110.00819.45
8.4.90.0090.01218.56
8.4.80.0120.00919.61
8.4.70.0150.00817.77
8.4.60.0040.00518.86
8.4.50.0090.00817.74
8.4.40.0160.00617.91
8.4.30.0130.00717.63
8.4.20.0130.01018.75
8.4.10.0130.00317.57
8.3.280.0150.00918.30
8.3.270.0110.00916.30
8.3.260.0040.00716.61
8.3.250.0060.00219.09
8.3.240.0090.01016.70
8.3.230.0120.00916.57
8.3.220.0080.01017.42
8.3.210.0080.01016.54
8.3.200.0070.00216.59
8.3.190.0080.01116.38
8.3.180.0040.00516.80
8.3.170.0130.00616.50
8.3.160.0070.00818.35
8.3.150.0050.00317.04
8.3.140.0090.00920.74
8.3.130.0040.00418.44
8.3.120.0090.00618.88
8.3.110.0030.00620.94
8.3.100.0130.00324.06
8.3.90.0090.00026.77
8.3.80.0030.00917.97
8.3.70.0070.00716.76
8.3.60.0150.00418.25
8.3.50.0100.01018.31
8.3.40.0090.00618.71
8.3.30.0090.00618.54
8.3.20.0040.00418.69
8.3.10.0050.00321.90
8.3.00.0000.00721.89
8.2.290.0070.00620.34
8.2.280.0060.00518.27
8.2.270.0120.00616.73
8.2.260.0070.01116.38
8.2.250.0120.00618.26
8.2.240.0160.00317.13
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0120.00326.77
8.2.200.0050.00516.63
8.2.190.0080.00616.58
8.2.180.0110.00418.14
8.2.170.0180.00422.96
8.2.160.0160.00319.16
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00722.08
8.2.120.0040.00426.35
8.2.110.0060.00320.35
8.2.100.0120.00017.81
8.2.90.0040.00417.63
8.2.80.0000.00818.91
8.2.70.0030.00617.75
8.2.60.0080.00017.91
8.2.50.0050.00318.07
8.2.40.0000.00718.35
8.2.30.0050.00218.08
8.2.20.0040.00418.00
8.2.10.0050.00318.14
8.2.00.0030.00619.46
8.1.330.0120.00722.11
8.1.320.0090.01016.10
8.1.310.0070.00716.69
8.1.300.0130.00717.75
8.1.290.0080.00330.84
8.1.280.0090.00925.92
8.1.270.0080.00020.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00319.06
8.1.230.0090.00617.70
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0060.00317.35
8.1.180.0030.00518.10
8.1.170.0000.00818.68
8.1.160.0000.00818.76
8.1.150.0040.00418.88
8.1.140.0000.00718.79
8.1.130.0030.00720.04
8.1.120.0040.00417.48
8.1.110.0000.00817.45
8.1.100.0040.00417.46
8.1.90.0040.00417.29
8.1.80.0070.00017.47
8.1.70.0070.00017.50
8.1.60.0050.00317.49
8.1.50.0080.00017.54
8.1.40.0080.00017.41
8.1.30.0110.00017.48
8.1.20.0040.00417.53
8.1.10.0070.00017.54
8.1.00.0070.00017.55
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00718.30
8.0.270.0000.00717.13
8.0.260.0070.00018.42
8.0.250.0000.00816.86
8.0.240.0070.00016.84
8.0.230.0000.00716.88
8.0.220.0000.00716.84
8.0.210.0000.00716.92
8.0.200.0070.00016.96
8.0.190.0050.00316.92
8.0.180.0000.00716.80
8.0.170.0050.00316.92
8.0.160.0070.00016.85
8.0.150.0070.00016.88
8.0.140.0040.00416.84
8.0.130.0040.00413.29
8.0.120.0080.00016.86
8.0.110.0000.00716.89
8.0.100.0000.00716.86
8.0.90.0030.00516.96
8.0.80.0090.00716.93
8.0.70.0000.00716.96
8.0.60.0040.00416.92
8.0.50.0040.00416.70
8.0.30.0140.00617.19
8.0.20.0100.00917.40
8.0.10.0000.00717.05
8.0.00.0100.00816.88
7.4.330.0000.00615.55
7.4.320.0000.00616.43
7.4.300.0060.00016.60
7.4.290.0030.00316.59
7.4.280.0000.00816.56
7.4.270.0070.00016.63
7.4.260.0070.00016.64
7.4.250.0000.00716.46
7.4.240.0000.00716.51
7.4.230.0030.00316.43
7.4.220.0060.00316.34
7.4.210.0070.01016.55
7.4.200.0000.00716.71
7.4.160.0090.01016.46
7.4.140.0130.00717.86
7.4.130.0050.01516.33
7.4.120.0140.00716.51
7.4.110.0000.01816.53
7.4.100.0030.01416.53
7.4.90.0070.01516.31
7.4.80.0150.00619.39
7.4.70.0040.01816.41
7.4.60.0070.01016.35
7.4.50.0100.00716.46
7.4.40.0150.00416.65
7.4.00.0100.00314.70
7.3.330.0020.00213.13
7.3.320.0030.00313.19
7.3.310.0020.00516.17
7.3.300.0000.00716.16
7.3.290.0030.00316.37
7.3.280.0100.00516.32
7.3.260.0090.01216.44
7.3.240.0120.00816.45
7.3.230.0120.00616.36
7.3.210.0130.00916.40
7.3.200.0000.01816.33
7.3.190.0090.00916.24
7.3.180.0070.01016.33
7.3.170.0140.00316.47
7.3.160.0130.00916.43
7.3.10.0070.00416.33
7.3.00.0030.01016.42
7.2.330.0160.01016.95
7.2.320.0120.00616.75
7.2.310.0060.01216.42
7.2.300.0130.00316.71
7.2.290.0060.01216.49
7.2.130.0030.01016.62
7.2.120.0080.00817.02
7.2.110.0100.01016.77
7.2.100.0440.00315.99
7.2.90.0520.00615.91
7.2.80.0440.00715.82
7.2.70.0440.00616.12
7.2.60.0440.00215.85
7.2.50.0400.00815.91
7.2.40.0420.00616.03
7.2.30.0410.00516.03
7.2.20.0450.00515.94
7.2.10.0490.00915.75
7.2.00.0530.01015.90
7.1.250.0030.00615.61
7.1.220.0650.00714.07
7.1.210.0640.00713.76
7.1.200.0980.00713.82
7.1.190.0660.00614.02
7.1.180.0750.00713.93
7.1.170.0820.00713.68
7.1.160.0670.01013.91
7.1.150.0690.00613.84
7.1.140.0700.01313.95
7.1.130.0680.00313.94
7.1.120.1040.01313.84
7.1.110.1060.01013.61
7.1.100.0960.01013.92
7.1.90.1040.00313.54
7.1.80.2130.00713.96
7.1.70.0770.00313.83
7.1.60.0730.01031.82
7.1.50.1110.00631.40
7.1.40.1080.01031.60
7.1.30.0520.01931.79
7.1.20.0710.00931.77
7.1.10.0670.00313.94
7.1.00.0770.00613.72

preferences:
170.41 ms | 403 KiB | 5 Q