3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['woid'=>'17643-2','schedule'=>'ASAP'], ['woid'=>'17643-1','schedule'=>'ASAP'], ['woid'=>'NC324-1','schedule'=>'ASAP'], ['woid'=>'17642-1','schedule'=>'URGENT'], ['woid'=>'NC323-1','schedule'=>'URGENT'], ['woid'=>'17644-1','schedule'=>'JAN'], ]; $order = ['URGENT','JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC','ASAP']; $order = array_flip($order); usort($array, function($a, $b) use ($order) { $aNC = strpos($a['woid'], 'NC') === 0; $bNC = strpos($b['woid'], 'NC') === 0; return ($bNC - $aNC) ?: ($order[$a['schedule']] - $order[$b['schedule']]) ?: strcmp($a['woid'], $b['woid']); }); var_dump($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.130.0090.00818.74
8.4.120.0150.00423.99
8.4.110.0100.01022.35
8.4.100.0030.00518.96
8.4.90.0080.01219.16
8.4.80.0120.00917.95
8.4.70.0140.00717.98
8.4.60.0060.00318.88
8.4.50.0130.00219.69
8.4.40.0130.00717.67
8.4.30.0160.00317.59
8.4.20.0100.01019.40
8.4.10.0060.00319.46
8.3.250.0090.00718.88
8.3.240.0070.00117.29
8.3.230.0090.00616.70
8.3.220.0100.00918.80
8.3.210.0040.00416.62
8.3.200.0060.00316.59
8.3.190.0090.01016.95
8.3.180.0080.00716.43
8.3.170.0090.01018.80
8.3.160.0030.01016.48
8.3.150.0090.00920.71
8.3.140.0030.00716.49
8.3.130.0080.00017.33
8.3.120.0200.00020.84
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00617.97
8.3.70.0090.00618.09
8.3.60.0140.00718.18
8.3.50.0130.00917.19
8.3.40.0110.00718.88
8.3.30.0150.00018.69
8.3.20.0040.00420.16
8.3.10.0040.00422.10
8.3.00.0050.00321.71
8.2.290.0110.00820.80
8.2.280.0030.00520.29
8.2.270.0000.00817.25
8.2.260.0110.00717.31
8.2.250.0030.00618.68
8.2.240.0130.00318.88
8.2.230.0030.00622.58
8.2.220.0000.00837.54
8.2.210.0140.00426.77
8.2.200.0050.00516.75
8.2.190.0120.00316.59
8.2.180.0070.01418.16
8.2.170.0120.00322.96
8.2.160.0140.00020.84
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0090.00022.16
8.2.100.0120.00017.91
8.2.90.0040.00418.16
8.2.80.0040.00419.04
8.2.70.0000.00817.63
8.2.60.0000.00817.75
8.2.50.0040.00418.28
8.2.40.0060.00320.59
8.2.30.0080.00021.16
8.2.20.0040.00418.13
8.2.10.0040.00418.02
8.2.00.0050.00218.18
8.1.330.0070.00222.28
8.1.320.0110.01016.46
8.1.310.0070.01118.52
8.1.300.0120.00817.91
8.1.290.0090.00018.88
8.1.280.0070.01125.92
8.1.270.0080.00022.02
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0110.00022.70
8.1.220.0040.00417.76
8.1.210.0090.00018.77
8.1.200.0000.00817.38
8.1.190.0040.00417.35
8.1.180.0050.00319.19
8.1.170.0040.00418.52
8.1.160.0000.00818.91
8.1.150.0040.00420.04
8.1.140.0040.00417.68
8.1.130.0040.00417.35
8.1.120.0050.00217.54
8.1.110.0050.00317.46
8.1.100.0000.00717.39
8.1.90.0030.00617.43
8.1.80.0050.00217.47
8.1.70.0000.00717.51
8.1.60.0000.01017.60
8.1.50.0060.00317.55
8.1.40.0040.00417.57
8.1.30.0030.00517.56
8.1.20.0030.00617.57
8.1.10.0040.00417.49
8.1.00.0100.00017.48
8.0.300.0040.00420.13
8.0.290.0000.00816.88
8.0.280.0000.00718.45
8.0.270.0040.00417.32
8.0.260.0040.00416.90
8.0.250.0030.00316.95
8.0.240.0000.00817.03
8.0.230.0030.00616.94
8.0.220.0040.00416.89
8.0.210.0030.00316.96
8.0.200.0030.00316.93
8.0.190.0070.00017.12
8.0.180.0050.00217.02
8.0.170.0080.00416.91
8.0.160.0000.00716.96
8.0.150.0100.00016.92
8.0.140.0000.00716.91
8.0.130.0030.00313.39
8.0.120.0000.00816.93
8.0.110.0050.00216.82
8.0.100.0020.00516.92
8.0.90.0040.00416.94
8.0.80.0100.00716.92
8.0.70.0050.00316.97
8.0.60.0040.00417.04
8.0.50.0000.00716.97
8.0.30.0100.00917.11
8.0.20.0140.00617.40
8.0.10.0060.00316.88
8.0.00.0160.00317.01
7.4.330.0000.00415.55
7.4.320.0060.00016.58
7.4.300.0000.00616.56
7.4.290.0030.00816.46
7.4.280.0000.00816.49
7.4.270.0070.00016.52
7.4.260.0050.00216.64
7.4.250.0040.00416.47
7.4.240.0070.00016.52
7.4.230.0070.00016.61
7.4.220.0110.00716.54
7.4.210.0030.01016.64
7.4.200.0040.00316.59
7.4.160.0110.01116.66
7.4.150.0160.01217.40
7.4.140.0110.01017.86
7.4.130.0210.00416.45
7.4.120.0120.00916.58
7.4.110.0200.00016.53
7.4.100.0140.01016.54
7.4.90.0070.01016.35
7.4.80.0140.01119.39
7.4.70.0130.00916.38
7.4.60.0100.00716.35
7.4.50.0110.00616.28
7.4.40.0060.01316.48
7.4.30.0050.01216.60
7.4.20.0120.00716.53
7.4.10.0080.01016.01
7.4.00.0110.00815.93
7.3.330.0060.00013.32
7.3.320.0030.00313.35
7.3.310.0040.00416.43
7.3.300.0070.00016.37
7.3.290.0090.01016.31
7.3.280.0090.00916.29
7.3.270.0120.00617.40
7.3.260.0090.01116.65
7.3.250.0090.00916.42
7.3.240.0120.00916.38
7.3.230.0120.00616.63
7.3.210.0170.00316.40
7.3.200.0100.00616.48
7.3.190.0030.01316.51
7.3.180.0080.00916.53
7.3.170.0080.00916.30
7.3.160.0080.01016.33
7.3.150.0130.00616.49
7.3.140.0060.01116.44
7.3.130.0060.01215.80
7.3.120.0110.01115.99
7.3.110.0140.00615.78
7.3.100.0090.00715.78
7.3.90.0090.00815.95
7.3.80.0080.00815.86
7.3.70.0050.00815.92
7.3.60.0100.00615.78
7.3.50.0060.01015.95
7.3.40.0050.01015.86
7.3.30.0050.01015.86
7.3.20.0060.01016.49
7.3.10.0040.01016.55
7.3.00.0090.00516.63
7.2.330.0100.00716.48
7.2.320.0120.00616.76
7.2.310.0140.00616.50
7.2.300.0140.00816.72
7.2.290.0120.00616.51
7.2.280.0100.01016.70
7.2.270.0080.01216.53
7.2.260.0070.01016.08
7.2.250.0120.00816.03
7.2.240.0080.00916.08
7.2.230.0090.00816.01
7.2.220.0090.00816.23
7.2.210.0120.00616.06
7.2.200.0080.00916.08
7.2.190.0090.00716.14
7.2.180.0100.00616.06
7.2.170.0100.00615.97
7.2.160.0080.01016.12
7.2.150.0100.01016.71
7.2.140.0100.00916.69
7.2.130.0100.00816.90
7.2.120.0080.00816.81
7.2.110.0080.01116.64
7.2.100.0070.01116.87
7.2.90.0080.00716.69
7.2.80.0070.01016.74
7.2.70.0160.01116.82
7.2.60.0090.01016.84
7.2.50.0100.00816.79
7.2.40.0090.00816.74
7.2.30.0050.01316.83
7.2.20.0100.00716.77
7.2.10.0070.00916.75
7.2.00.0070.00916.68
7.1.330.0140.00915.68
7.1.320.0100.00915.72
7.1.310.0120.00515.66
7.1.300.0170.00315.50
7.1.290.0120.00615.59
7.1.280.0090.01015.59
7.1.270.0410.00515.61
7.1.260.0080.01115.60
7.1.250.0080.01115.53
7.1.240.0100.01115.61
7.1.230.0150.00815.55
7.1.220.0100.01015.47
7.1.210.0080.01015.40
7.1.200.0100.00815.61
7.1.190.0090.01215.54
7.1.180.0070.01215.57
7.1.170.0110.00815.48
7.1.160.0070.01015.54
7.1.150.0140.00815.59
7.1.140.0160.00615.64
7.1.130.0080.01415.52
7.1.120.0090.01015.70
7.1.110.0210.00615.59
7.1.100.0250.01015.67
7.1.90.0180.00915.78
7.1.80.0170.01115.82
7.1.70.0060.01116.07
7.1.60.0120.00920.53
7.1.50.0100.00920.42
7.1.40.0130.00920.37
7.1.30.0170.00720.44
7.1.20.0120.01120.40
7.1.10.0110.00715.85
7.1.00.0130.00615.84
7.0.330.0120.00815.18
7.0.320.0140.00715.33
7.0.310.0160.00715.24
7.0.300.0140.00815.14
7.0.290.0110.01015.29
7.0.280.0140.00815.33
7.0.270.0130.00815.20
7.0.260.0170.00515.29
7.0.250.0180.00515.33
7.0.240.0280.00615.58
7.0.230.0220.00615.41
7.0.220.0180.00815.51
7.0.210.0120.00415.58
7.0.200.0060.01215.50
7.0.190.0100.00715.73
7.0.180.0110.00615.50
7.0.170.0080.00915.50
7.0.160.0090.00915.49
7.0.150.0130.00815.44
7.0.140.0140.00415.53
7.0.130.0060.01115.64
7.0.120.0100.00915.62
7.0.110.0120.00815.59
7.0.100.0100.00915.69
7.0.90.0100.00815.65
7.0.80.0090.01015.41
7.0.70.0110.00715.55
7.0.60.0120.00715.49
7.0.50.0110.00715.60
7.0.40.0090.00915.11
7.0.30.0130.00515.14
7.0.20.0090.00815.00
7.0.10.0090.00815.02
7.0.00.0100.00615.10
5.6.400.0120.01115.54
5.6.390.0120.00915.50
5.6.380.0140.00915.54
5.6.370.0150.00915.58
5.6.360.0110.01215.47
5.6.350.0160.00715.52
5.6.340.0150.00715.56
5.6.330.0130.01115.43
5.6.320.0150.01015.42
5.6.310.0110.01015.60
5.6.300.0080.02416.91
5.6.290.0090.02316.70
5.6.280.0090.02416.78
5.6.270.0130.02016.75
5.6.260.0140.02016.76
5.6.250.0110.02116.83
5.6.240.0130.02116.82
5.6.230.0110.02016.89
5.6.220.0120.02016.79
5.6.210.0110.02116.71
5.6.200.0120.02016.86
5.6.190.0140.02016.79
5.6.180.0110.02116.79
5.6.170.0140.01816.75
5.6.160.0060.02516.85
5.6.150.0130.01816.71
5.6.140.0140.01916.72
5.6.130.0110.02116.78
5.6.120.0090.02316.74
5.6.110.0110.02016.87
5.6.100.0110.01916.78
5.6.90.0120.01816.69
5.6.80.0100.02216.62
5.6.70.0100.02016.62
5.6.60.0110.01916.57
5.6.50.0100.01916.67
5.6.40.0080.02216.61
5.6.30.0110.01816.60
5.6.20.0110.01916.48
5.6.10.0130.02516.56
5.6.00.0100.02216.57

preferences:
147.42 ms | 403 KiB | 5 Q