3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "0"=>array("0"=>"joe", "1"=>"2018-07-18 09:00:00"), "1"=>array("0"=>"tom", "1"=>"2018-07-17 09:00:00"), "2"=>array("0"=>"joe", "1"=>"2018-07-14 09:00:00"), "3"=>array("0"=>"sam", "1"=>"2018-07-19 09:00:00"), ); usort($arr, function($a, $b) { return $a[1] <=> $b[1]; }); $joes = array_intersect(array_column($arr, 0), ["joe"]); $current = max(array_keys($joes)); Unset($arr[$current]); Var_dump($arr);

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.80.0090.00018.55
8.3.70.0000.01818.30
8.3.60.0160.00618.30
8.3.50.0130.00117.53
8.3.40.0040.01118.66
8.3.30.0070.00718.73
8.3.20.0040.00419.01
8.3.10.0080.00023.64
8.3.00.0080.00023.48
8.2.200.0030.00618.17
8.2.190.0000.01516.75
8.2.180.0070.01116.75
8.2.170.0120.00622.96
8.2.160.0150.00018.84
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00320.38
8.2.120.0040.00426.16
8.2.110.0060.00319.26
8.2.100.0060.00617.78
8.2.90.0080.00019.27
8.2.80.0060.00319.34
8.2.70.0040.00417.75
8.2.60.0060.00318.04
8.2.50.0080.00018.07
8.2.40.0040.00419.89
8.2.30.0000.00917.76
8.2.20.0050.00318.13
8.2.10.0000.00819.46
8.2.00.0070.00019.43
8.1.290.0070.00318.88
8.1.280.0150.00425.92
8.1.270.0080.00022.15
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.66
8.1.230.0060.00620.88
8.1.220.0040.00418.77
8.1.210.0060.00319.16
8.1.200.0000.01017.36
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00518.80
8.1.160.0000.00819.13
8.1.150.0000.00718.93
8.1.140.0000.00717.79
8.1.130.0040.00418.96
8.1.120.0040.00317.41
8.1.110.0030.00317.49
8.1.100.0050.00217.52
8.1.90.0030.00517.50
8.1.80.0000.00717.52
8.1.70.0070.00317.43
8.1.60.0000.00917.54
8.1.50.0060.00617.54
8.1.40.0000.00817.52
8.1.30.0030.00617.49
8.1.20.0030.00617.68
8.1.10.0000.00917.55
8.1.00.0040.00417.53
8.0.300.0040.00419.95
8.0.290.0040.00416.75
8.0.280.0050.00218.52
8.0.270.0000.00718.00
8.0.260.0000.00717.24
8.0.250.0000.01016.85
8.0.240.0060.00016.91
8.0.230.0050.00216.83
8.0.220.0000.00816.86
8.0.210.0070.00016.87
8.0.200.0030.00316.96
8.0.190.0020.00516.94
8.0.180.0030.00516.86
8.0.170.0080.00016.93
8.0.160.0030.00316.78
8.0.150.0040.00316.79
8.0.140.0000.00816.75
8.0.130.0000.00613.29
8.0.120.0000.00716.72
8.0.110.0030.00516.86
8.0.100.0040.00416.88
8.0.90.0070.00016.90
8.0.80.0070.01016.93
8.0.70.0040.00316.87
8.0.60.0070.00016.93
8.0.50.0040.00416.88
8.0.30.0110.01017.01
8.0.20.0100.01117.40
8.0.10.0000.00817.04
8.0.00.0110.01216.69
7.4.330.0000.00515.55
7.4.320.0000.00716.45
7.4.300.0030.00316.49
7.4.290.0030.00316.38
7.4.280.0060.00316.39
7.4.270.0070.00016.42
7.4.260.0040.00416.57
7.4.250.0070.00016.47
7.4.240.0030.00316.46
7.4.230.0070.00016.66
7.4.220.0040.00416.70
7.4.210.0100.00716.59
7.4.200.0040.00416.70
7.4.160.0100.00916.45
7.4.140.0070.01017.86
7.4.130.0060.01316.39
7.4.120.0130.00916.49
7.4.110.0100.01416.54
7.4.100.0080.00816.32
7.4.90.0110.00816.45
7.4.80.0100.01019.39
7.4.70.0110.01116.41
7.4.60.0170.00016.45
7.4.50.0060.00916.64
7.4.40.0120.00916.62
7.4.00.0040.00714.73
7.3.330.0050.00013.21
7.3.320.0060.00013.09
7.3.310.0000.00716.37
7.3.300.0000.00716.36
7.3.290.0000.00716.25
7.3.280.0110.00616.26
7.3.260.0080.00816.37
7.3.240.0110.01116.38
7.3.230.0170.00016.29
7.3.210.0140.01016.62
7.3.200.0070.01116.33
7.3.190.0120.00616.37
7.3.180.0070.01016.46
7.3.170.0130.00316.51
7.3.160.0060.01216.42
7.2.330.0110.01816.29
7.2.320.0040.01816.61
7.2.310.0090.00916.60
7.2.300.0060.01316.54
7.2.290.0100.00716.75
7.2.70.0080.01116.93
7.2.60.0110.00716.61
7.2.50.0070.01116.71
7.2.40.0000.01316.98
7.2.30.0080.00816.90
7.2.20.0060.01216.81
7.2.10.0120.00316.61
7.2.00.0070.00716.66
7.1.200.0030.00915.89
7.1.170.0030.00915.83
7.1.160.0090.01215.74
7.1.150.0030.01515.76
7.1.140.0090.00615.63
7.1.130.0070.00715.88
7.1.120.0110.00615.66
7.1.110.0100.00615.72
7.1.100.0060.00915.77
7.1.90.0130.00015.95
7.1.80.0080.00615.55
7.1.70.0040.00915.52
7.1.60.0300.01533.83
7.1.50.0350.01233.63
7.1.40.0330.01633.65
7.1.30.0270.00733.40
7.1.20.0230.01133.50
7.1.10.0090.00615.49
7.1.00.0040.01215.83

preferences:
27.81 ms | 401 KiB | 5 Q