3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['ID' => 1, 'title' => 'Boring Meeting', 'date_start' => '2010-07-30', 'event_type' => 'meeting', 'state' => 'new-york'], ['ID' => 2, 'title' => 'Find My Stapler', 'date_start' => '2010-07-22', 'event_type' => 'meeting', 'state' => 'new-york'], ['ID' => 3, 'title' => 'Mario Party', 'date_start' => '2010-07-22', 'event_type' => 'party', 'state' => 'new-york'], ['ID' => 4, 'title' => 'Duct Tape Party', 'date_start' => '2010-07-28', 'event_type' => 'party', 'state' => 'california'] ]; usort($array, fn($a, $b) => [$a['state'], $a['event_type'], $a['date_start']] <=> [$b['state'], $b['event_type'], $b['date_start']]); var_export($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.3.130.0040.00418.39
8.3.120.0040.00420.88
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0070.00319.36
8.3.70.0090.00916.34
8.3.60.0100.00618.11
8.3.50.0100.00418.35
8.3.40.0060.00918.79
8.3.30.0070.00718.58
8.3.20.0040.00422.57
8.3.10.0020.00523.65
8.3.00.0080.00020.82
8.2.250.0060.00318.44
8.2.240.0100.01017.39
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0110.00426.77
8.2.200.0090.00018.88
8.2.190.0100.01016.58
8.2.180.0110.01118.42
8.2.170.0070.00722.96
8.2.160.0110.00821.74
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.64
8.2.110.0030.00621.13
8.2.100.0070.00417.90
8.2.90.0070.00417.88
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00817.75
8.2.50.0040.00417.93
8.2.40.0000.00819.89
8.2.30.0000.00819.36
8.2.20.0000.00718.13
8.2.10.0040.00418.96
8.2.00.0040.00419.30
8.1.300.0030.00618.02
8.1.290.0080.00030.84
8.1.280.0120.00625.92
8.1.270.0040.00422.35
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00419.44
8.1.230.0030.00717.89
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.13
8.1.180.0090.00018.10
8.1.170.0000.00717.62
8.1.160.0040.00420.31
8.1.150.0050.00318.83
8.1.140.0040.00418.81
8.1.130.0040.00417.47
8.1.120.0040.00417.52
8.1.110.0000.00717.45
8.1.100.0000.00717.47
8.1.90.0050.00317.46
8.1.80.0030.00617.47
8.1.70.0090.00217.43
8.1.60.0060.00817.60
8.1.50.0060.00617.48
8.1.40.0100.00517.48
8.1.30.0060.00917.56
8.1.20.0120.00717.62
8.1.10.0140.00317.49
8.1.00.0120.00517.51
8.0.300.0000.00718.77
8.0.290.0030.00516.63
8.0.280.0050.00318.33
8.0.270.0000.00716.71
8.0.260.0030.00316.71
8.0.250.0100.00016.95
8.0.240.0030.00616.86
8.0.230.0170.00616.74
8.0.220.0040.00416.80
8.0.210.0050.00516.86
8.0.200.0070.00416.88
8.0.190.0060.00516.88
8.0.180.0080.00416.87
8.0.170.0040.00816.90
8.0.160.0060.00516.91
8.0.150.0020.00816.79
8.0.140.0090.00516.83
8.0.130.0140.00215.60
8.0.120.0110.00216.77
8.0.110.0100.00416.76
8.0.100.0110.00416.83
8.0.90.0100.00516.86
8.0.80.0060.01116.83
8.0.70.0100.00916.82
8.0.60.0090.00816.80
8.0.50.0120.00616.80
8.0.30.0090.01016.88
8.0.20.0100.00816.92
8.0.10.0100.00616.99
8.0.00.0060.00817.01
7.4.330.0160.00414.51
7.4.320.0000.00616.42
7.4.300.0060.00416.51
7.4.290.0040.00816.54
7.4.280.0090.00316.55
7.4.270.0070.00416.51
7.4.260.0080.00615.44
7.4.250.0120.00416.51
7.4.240.0120.00316.54
7.4.230.0130.00316.55
7.4.220.0060.00516.48
7.4.210.0080.00816.52
7.4.200.0120.00316.54
7.4.190.0110.00516.56
7.4.180.0130.00316.59
7.4.160.0090.00616.62
7.4.150.0100.00516.56
7.4.140.0080.00616.46
7.4.130.0090.00616.46
7.4.120.0090.00816.49
7.4.110.0070.00716.41
7.4.100.0060.00816.53
7.4.90.0100.00516.45
7.4.80.0130.00217.17
7.4.70.0110.00616.52
7.4.60.0080.00616.52
7.4.50.0060.00916.32
7.4.40.0080.00816.39
7.4.30.0060.00816.37
7.4.20.0110.00516.42
7.4.10.0080.00816.43
7.4.00.0080.00732.17
7.3.330.0120.00116.04
7.3.320.0070.00715.19
7.3.310.0070.00716.22
7.3.300.0110.00316.14
7.3.290.0070.00916.13
7.3.280.0110.00516.02
7.3.270.0080.00816.16
7.3.260.0080.01016.22
7.3.250.0130.00316.13
7.3.240.0090.00816.16
7.3.230.0110.00716.11
7.3.220.0150.00315.99
7.3.210.0100.00816.07
7.3.200.0150.00416.17
7.3.190.0130.00416.21
7.3.180.0110.00816.04
7.3.170.0100.00816.05
7.3.160.0110.00616.15
7.3.150.0120.00516.04
7.3.140.0110.00716.08
7.3.130.0110.00716.15
7.3.120.0100.00616.08
7.3.110.0070.01015.83
7.3.100.0120.00615.88
7.3.90.0090.00816.06
7.3.80.0110.00715.93
7.3.70.0110.00715.93
7.3.60.0100.00715.91
7.3.50.0120.00715.93
7.3.40.0110.00815.98
7.3.30.0070.00915.97
7.3.20.0090.01016.50
7.3.10.0160.00517.01
7.3.00.0110.00916.48
7.2.340.0130.00416.51
7.2.330.0100.00916.18
7.2.320.0100.00716.14
7.2.310.0110.00816.18
7.2.300.0090.01016.12
7.2.290.0100.00816.12
7.2.280.0100.00616.15
7.2.270.0080.00916.15
7.2.260.0130.00616.15
7.2.250.0120.00616.27
7.2.240.0080.00915.95
7.2.230.0110.00715.93
7.2.220.0120.00615.96
7.2.210.0070.01216.01
7.2.200.0120.00716.03
7.2.190.0120.00716.06
7.2.180.0090.00816.01
7.2.170.0080.01116.02
7.2.160.0090.00916.12
7.2.150.0120.00716.70
7.2.140.0090.01116.55
7.2.130.0100.00916.66
7.2.120.0100.00716.68
7.2.110.0100.00816.74
7.2.100.0090.01016.62
7.2.90.0130.00916.71
7.2.80.0120.01016.61
7.2.70.0100.00816.57
7.2.60.0130.00616.62
7.2.50.0130.00716.69
7.2.40.0090.01116.66
7.2.30.0140.00816.70
7.2.20.0100.01016.75
7.2.10.0140.00616.68
7.2.00.0110.00716.66
7.1.330.0140.00815.54
7.1.320.0160.00715.60
7.1.310.0130.00915.61
7.1.300.0120.00815.56
7.1.290.0120.00815.57
7.1.280.0170.00615.48
7.1.270.0140.00715.55
7.1.260.0120.00715.45
7.1.250.0120.00815.55
7.1.240.0140.00715.74
7.1.230.0150.00815.73
7.1.220.0140.00715.82
7.1.210.0170.00915.84
7.1.200.0090.01115.82
7.1.190.0150.00615.87
7.1.180.0170.00515.71
7.1.170.0140.00715.84
7.1.160.0130.00815.84
7.1.150.0150.00715.81
7.1.140.0120.00815.79
7.1.130.0110.00915.79
7.1.120.0140.00715.76
7.1.110.0130.00915.72
7.1.100.0120.00815.70
7.1.90.0140.00715.69
7.1.80.0150.00815.77
7.1.70.0120.00815.71
7.1.60.0130.00815.76
7.1.50.0120.00915.82
7.1.40.0150.00715.81
7.1.30.0130.00715.70
7.1.20.0130.00915.79
7.1.10.0130.00815.74
7.1.00.0150.00515.67
5.2.140.0030.00479.33

preferences:
27.56 ms | 403 KiB | 5 Q