3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ new StdClass, new StdClass, new StdClass, ]; $arr[0]->path_to_file = "roberson_wine_5"; $arr[0]->order = 2; $arr[1]->path_to_file = "roberson_wine_5"; $arr[1]->order = 3; $arr[2]->path_to_file = "roberson_wine_3"; $arr[2]->order = 1; print_r($arr); usort($arr, function($a, $b){ if($a->order == $b->order) return 0; return $a->order > $b->order ? 1: -1; }); print_r($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.70.0140.00316.50
8.3.60.0140.00316.50
8.3.50.0100.00921.96
8.3.40.0070.00718.56
8.3.30.0100.00719.27
8.3.20.0040.00420.34
8.3.10.0050.00321.94
8.3.00.0000.00819.38
8.2.190.0040.01216.88
8.2.180.0120.00916.63
8.2.170.0040.01122.96
8.2.160.0100.00320.37
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00319.66
8.2.110.0000.01019.16
8.2.100.0040.00817.63
8.2.90.0040.00419.19
8.2.80.0090.00017.97
8.2.70.0000.01017.63
8.2.60.0030.00518.04
8.2.50.0030.00618.07
8.2.40.0040.00419.94
8.2.30.0050.00318.26
8.2.20.0000.00817.89
8.2.10.0000.00818.01
8.2.00.0000.00717.80
8.1.280.0100.01025.92
8.1.270.0040.00420.50
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.05
8.1.230.0070.00417.76
8.1.220.0040.00417.77
8.1.210.0030.00518.77
8.1.200.0000.01017.36
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0050.00318.64
8.1.160.0000.00722.05
8.1.150.0040.00418.91
8.1.140.0040.00417.48
8.1.130.0000.00717.81
8.1.120.0070.00017.39
8.1.110.0040.00417.38
8.1.100.0040.00417.48
8.1.90.0040.00417.36
8.1.80.0040.00417.50
8.1.70.0000.00717.52
8.1.60.0080.00017.62
8.1.50.0030.00617.60
8.1.40.0040.00417.59
8.1.30.0000.00817.55
8.1.20.0080.00017.66
8.1.10.0000.00717.59
8.1.00.0040.00817.55
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0000.00818.38
8.0.270.0080.00017.19
8.0.260.0030.00317.32
8.0.250.0000.00616.96
8.0.240.0060.00016.85
8.0.230.0070.00016.86
8.0.220.0040.00416.81
8.0.210.0000.00716.88
8.0.200.0020.00516.98
8.0.190.0000.00716.94
8.0.180.0080.00016.93
8.0.170.0030.00616.99
8.0.160.0080.00017.02
8.0.150.0070.00016.80
8.0.140.0000.00816.87
8.0.130.0060.00013.37
8.0.120.0030.00516.88
8.0.110.0070.00016.91
8.0.100.0000.00716.97
8.0.90.0030.00616.93
8.0.80.0160.00616.86
8.0.70.0080.00016.94
8.0.60.0040.00416.90
8.0.50.0070.00016.78
8.0.30.0130.01317.12
8.0.20.0080.01017.40
8.0.10.0030.00417.04
8.0.00.0100.00716.98
7.4.330.0050.00015.09
7.4.320.0060.00016.53
7.4.300.0030.00316.57
7.4.290.0000.00716.53
7.4.280.0030.00516.54
7.4.270.0040.00416.64
7.4.260.0020.00516.59
7.4.250.0030.00516.57
7.4.240.0050.00316.62
7.4.230.0040.00416.40
7.4.220.0090.00916.47
7.4.210.0090.00816.55
7.4.200.0040.00416.63
7.4.160.0030.01216.51
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0150.00816.50
7.4.120.0080.00816.46
7.4.110.0090.01316.66
7.4.100.0060.01216.45
7.4.90.0080.00916.61
7.4.80.0130.00719.39
7.4.70.0030.01316.47
7.4.60.0120.00416.53
7.4.50.0050.00016.66
7.4.40.0060.00916.48
7.4.30.0120.00916.66
7.4.00.0100.00714.49
7.3.330.0060.00013.35
7.3.320.0060.00613.36
7.3.310.0060.00016.34
7.3.300.0030.00316.41
7.3.290.0050.00216.33
7.3.280.0060.00816.31
7.3.270.0100.00617.40
7.3.260.0120.01216.32
7.3.250.0060.01416.32
7.3.240.0040.01416.48
7.3.230.0120.00616.49
7.3.210.0140.00316.26
7.3.200.0140.00319.39
7.3.190.0040.01516.49
7.3.180.0110.00716.37
7.3.170.0130.00316.63
7.3.160.0090.00916.65
7.2.330.0130.00816.86
7.2.320.0120.00616.71
7.2.310.0100.00616.66
7.2.300.0200.00016.44
7.2.290.0130.00816.32
7.2.80.0000.01416.52
7.2.60.0070.01016.95
7.2.00.0000.01018.85
7.1.200.0120.01215.69
7.1.100.0080.00317.92
7.1.70.0040.00716.90
7.1.60.0100.01419.50
7.1.50.0090.01216.89
7.1.00.0070.07022.35
7.0.200.0030.00516.49
7.0.140.0070.07322.00
7.0.60.0030.04020.00
7.0.50.0100.07717.81
7.0.40.0130.03720.23
7.0.30.0370.07020.21
7.0.20.0270.06720.07
7.0.10.0070.06020.18
7.0.00.0000.09020.32
5.6.280.0100.06720.79
5.6.210.0130.07720.57
5.6.200.0100.06018.21
5.6.190.0030.08720.47
5.6.180.0370.05720.61
5.6.170.0200.08020.53
5.6.160.0000.04320.45
5.6.150.0030.05718.28
5.6.140.0000.04718.14
5.6.130.0030.04018.29
5.6.120.0030.05321.07
5.6.110.0100.08320.98
5.6.100.0100.07021.14
5.6.90.0130.07321.13
5.6.80.0030.04320.45
5.5.350.0200.08320.45
5.5.340.0130.07318.09
5.5.330.0030.06020.47
5.5.320.0270.06020.27
5.5.310.0330.07020.35
5.5.300.0100.07318.05
5.5.290.0100.06017.98
5.5.280.0130.07320.87
5.5.270.0070.08320.84
5.5.260.0170.07320.79
5.5.250.0000.04320.79
5.5.240.0030.07720.19
5.4.450.0330.06719.30
5.4.440.0300.07319.49
5.4.430.0200.06019.54
5.4.420.0230.04719.49
5.4.410.0300.07319.42
5.4.400.0200.04718.87
5.4.390.0370.06319.18
5.4.380.0270.03719.09
5.4.370.0200.04019.26
5.4.360.0230.03718.98
5.4.350.0230.03718.98
5.4.340.0200.04319.20
5.4.320.0200.04018.95
5.4.310.0330.04019.24
5.4.300.0200.05019.14
5.4.290.0330.07019.06
5.4.280.0230.03719.09
5.4.270.0400.06018.87
5.4.260.0470.05319.06
5.4.250.0230.03719.13
5.4.240.0270.04719.05
5.4.230.0330.05018.83
5.4.220.0230.04019.23
5.4.210.0200.05318.88
5.4.200.0370.06319.23
5.4.190.0300.03318.99
5.4.180.0230.05718.94
5.4.170.0230.04019.14
5.4.160.0330.06319.20
5.4.150.0300.06718.84
5.4.140.0400.05016.39
5.4.130.0270.06316.32
5.4.120.0500.02716.37
5.4.110.0300.06716.25
5.4.100.0170.04716.55
5.4.90.0270.06316.56
5.4.80.0230.06316.54
5.4.70.0270.04316.56
5.4.60.0330.06316.49
5.4.50.0300.06716.33
5.4.40.0270.04316.23
5.4.30.0300.05016.53
5.4.20.0370.06016.42
5.4.10.0430.02716.49
5.4.00.0170.04016.12
5.3.290.0330.06014.51
5.3.280.0270.05714.50
5.3.270.0200.04714.44
5.3.260.0200.07314.55
5.3.250.0230.04014.44
5.3.240.0330.06714.55
5.3.230.0270.05014.50
5.3.220.0270.07314.40
5.3.210.0300.04714.41
5.3.200.0300.05714.68
5.3.190.0400.06014.52
5.3.180.0300.06714.58
5.3.170.0300.03014.57
5.3.160.0200.04014.40
5.3.150.0270.03014.52
5.3.140.0230.04314.40
5.3.130.0330.02714.43
5.3.120.0230.03714.50
5.3.110.0270.07314.60
5.3.100.0300.05013.88
5.3.90.0230.03713.97
5.3.80.0270.04013.97
5.3.70.0270.05314.07
5.3.60.0300.03313.86
5.3.50.0270.07013.96
5.3.40.0400.05713.74
5.3.30.0330.06313.80
5.3.20.0230.04713.55
5.3.10.0300.05713.43
5.3.00.0230.04313.58
5.2.170.0130.03312.10
5.2.160.0200.04312.10
5.2.150.0200.02712.10
5.2.140.0230.02712.10
5.2.130.0130.03312.10
5.2.120.0330.05012.10
5.2.110.0200.03012.10
5.2.100.0200.04312.10
5.2.90.0170.03012.10
5.2.80.0270.03312.10
5.2.70.0200.04312.10
5.2.60.0230.06312.10
5.2.50.0200.03012.10
5.2.40.0230.05312.10
5.2.30.0200.04012.10
5.2.20.0170.03312.10
5.2.10.0130.03012.10
5.2.00.0200.04312.10
5.1.60.0230.04712.10
5.1.50.0230.04312.10
5.1.40.0170.05312.10
5.1.30.0200.05712.10
5.1.20.0370.02012.10
5.1.10.0170.05312.10
5.1.00.0270.05012.10
5.0.50.0100.04712.10
5.0.40.0070.04012.10
5.0.30.0170.03312.10
5.0.20.0070.04312.10
5.0.10.0100.03712.10
5.0.00.0130.05312.10
4.4.90.0070.02012.10
4.4.80.0100.01712.10
4.4.70.0100.03712.10
4.4.60.0070.01712.10
4.4.50.0070.01712.10
4.4.40.0030.02712.10
4.4.30.0130.02012.10
4.4.20.0130.03312.10
4.4.10.0100.01312.10
4.4.00.0070.02712.10
4.3.110.0100.01312.10
4.3.100.0100.01712.10
4.3.90.0130.03012.10
4.3.80.0070.02312.10
4.3.70.0100.02012.10
4.3.60.0030.01712.10
4.3.50.0070.02012.10
4.3.40.0100.02012.10
4.3.30.0070.03712.10
4.3.20.0030.03012.10
4.3.10.0070.02712.10
4.3.00.0070.01712.10

preferences:
42.77 ms | 401 KiB | 5 Q