3v4l.org

run code in 300+ PHP versions simultaneously
<?php $products = [ ['id' => 1, 'brand' => 'apple'], ['id' => 2, 'brand' => 'dell'], ['id' => 3, 'brand' => 'microsoft'], ['id' => 4, 'brand' => 'assus'], ['id' => 5, 'brand' => 'dell'] ]; usort($products, function ($a, $b) { if ($a['brand'] == 'dell') return -1; if ($b['brand'] == 'dell') return 1; return 0; }); var_dump($products);

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.0040.01116.63
8.3.60.0070.01016.63
8.3.50.0140.00716.62
8.3.40.0060.01218.71
8.3.30.0140.00718.72
8.3.20.0040.00421.81
8.3.10.0050.00323.66
8.3.00.0080.00021.96
8.2.190.0120.00318.54
8.2.180.0130.00625.92
8.2.170.0140.00322.96
8.2.160.0180.00020.00
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.14
8.2.110.0090.00021.02
8.2.100.0060.00617.90
8.2.90.0080.00017.84
8.2.80.0080.00018.04
8.2.70.0060.00317.91
8.2.60.0040.00417.63
8.2.50.0040.00417.93
8.2.40.0060.00319.38
8.2.30.0060.00319.38
8.2.20.0000.00718.09
8.2.10.0050.00318.04
8.2.00.0040.00418.01
8.1.280.0090.00625.92
8.1.270.0030.00621.95
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00023.80
8.1.230.0090.00322.61
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0090.00017.62
8.1.160.0030.00518.85
8.1.150.0000.00720.18
8.1.140.0000.00817.68
8.1.130.0110.00018.87
8.1.120.0070.00017.36
8.1.110.0040.00417.38
8.1.100.0020.00517.50
8.1.90.0000.00917.44
8.1.80.0000.00717.46
8.1.70.0030.00317.46
8.1.60.0040.00717.58
8.1.50.0090.00017.54
8.1.40.0050.00317.44
8.1.30.0040.00417.62
8.1.20.0000.00817.65
8.1.10.0000.00717.59
8.1.00.0070.00717.55
8.0.300.0030.00619.60
8.0.290.0110.00016.63
8.0.280.0040.00418.34
8.0.270.0100.00017.20
8.0.260.0000.01016.81
8.0.250.0030.00316.89
8.0.240.0000.00716.94
8.0.230.0030.00316.95
8.0.220.0070.00016.85
8.0.210.0000.00716.77
8.0.200.0060.00016.84
8.0.190.0030.00516.82
8.0.180.0050.00316.90
8.0.170.0030.00716.88
8.0.160.0000.00816.78
8.0.150.0030.00416.82
8.0.140.0040.00416.84
8.0.130.0060.00013.26
8.0.120.0030.00516.84
8.0.110.0030.00517.01
8.0.100.0040.00416.89
8.0.90.0050.00316.74
8.0.80.0280.00916.94
8.0.70.0000.00716.83
8.0.60.0050.00216.95
8.0.50.0050.00216.75
8.0.30.0110.00916.88
8.0.20.0150.00517.40
8.0.10.0000.00716.88
8.0.00.0130.00516.73
7.4.330.0030.00315.55
7.4.320.0060.00016.52
7.4.300.0060.00016.50
7.4.290.0070.00016.49
7.4.280.0000.00716.48
7.4.270.0000.00716.62
7.4.260.0030.00316.38
7.4.250.0030.00316.54
7.4.240.0030.00316.51
7.4.230.0000.00716.30
7.4.220.0080.00016.70
7.4.210.0090.00616.50
7.4.200.0000.00716.69
7.4.160.0070.00816.46
7.4.140.0090.01217.86
7.4.130.0160.00316.43
7.4.120.0130.00616.48
7.4.110.0160.00316.46
7.4.100.0110.00816.35
7.4.90.0090.00916.49
7.4.80.0100.01119.39
7.4.70.0140.01016.35
7.4.60.0060.00916.64
7.4.50.0040.01016.42
7.4.40.0060.01516.46
7.4.00.0120.00314.71
7.3.330.0000.00513.26
7.3.320.0030.00313.26
7.3.310.0030.00316.20
7.3.300.0030.00316.25
7.3.290.0070.00916.24
7.3.280.0090.01116.22
7.3.260.0110.00916.42
7.3.240.0090.01016.35
7.3.230.0090.00716.39
7.3.210.0070.01016.38
7.3.200.0090.00916.58
7.3.190.0140.00316.31
7.3.180.0090.01316.36
7.3.170.0070.01016.43
7.3.160.0030.01716.25
7.2.330.0120.00916.55
7.2.320.0030.02016.72
7.2.310.0060.01516.30
7.2.300.0000.01716.58
7.2.290.0100.01316.80
7.2.60.0030.01016.89
7.2.30.0670.01817.57
7.2.20.0260.01117.90
7.2.10.0130.01117.90
7.2.00.0140.01017.86
7.1.200.0100.00315.67
7.1.150.0130.01516.66
7.1.140.0120.01516.96
7.1.130.0100.01316.88
7.1.120.0110.01016.94
7.1.110.0110.01015.96
7.1.100.0080.01316.06
7.1.90.0130.00816.39
7.1.80.0140.01215.75
7.1.70.0110.01015.19
7.1.60.0280.01432.94
7.1.50.0300.01233.01
7.1.40.0340.02032.75
7.1.30.0290.01732.63
7.1.20.0310.01532.77
7.1.10.0130.01714.59
7.1.00.0810.01114.89

preferences:
45.57 ms | 401 KiB | 5 Q