3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cats = []; $cats[] = [ "name" => 'Frisky', "favorite_show" => 'Cats and Dogs' ]; $cats[] = [ "name" => 'Meowie', "favorite_show" => 'Dogs chasing Cats' ]; $cats[] = [ "name" => 'Caesar', "favorite_show" => 'All Cats Rule' ]; $cats[] = [ "name" => 'Dot', "favorite_show" => 'No cats suck' ]; usort($cats, function($a, $b) { return strcmp($a->favorite_show, $b->favorite_show); }); var_dump($cats); ?>

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.60.0090.00916.75
8.3.50.0170.00316.47
8.3.40.0080.00818.69
8.3.30.0070.01018.71
8.3.20.0040.00420.39
8.3.10.0000.00723.67
8.3.00.0080.00023.57
8.2.180.0150.00616.63
8.2.170.0070.01422.96
8.2.160.0070.00720.22
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00222.08
8.2.120.0040.00426.35
8.2.110.0030.00620.43
8.2.100.0060.00617.91
8.2.90.0080.00017.88
8.2.80.0030.00518.91
8.2.70.0040.00417.93
8.2.60.0080.00018.27
8.2.50.0090.00019.38
8.2.40.0050.00320.96
8.2.30.0100.00019.43
8.2.20.0040.00418.09
8.2.10.0000.00818.02
8.2.00.0040.00418.18
8.1.280.0060.00925.92
8.1.270.0040.00423.91
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00323.79
8.1.230.0040.00720.88
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0100.00017.36
8.1.190.0080.00017.35
8.1.180.0000.00818.81
8.1.170.0060.00318.53
8.1.160.0040.00418.90
8.1.150.0000.00720.64
8.1.140.0040.00417.70
8.1.130.0070.00018.89
8.1.120.0040.00417.43
8.1.110.0040.00417.50
8.1.100.0080.00017.53
8.1.90.0040.00417.47
8.1.80.0040.00417.52
8.1.70.0030.00717.49
8.1.60.0030.00617.52
8.1.50.0040.00417.49
8.1.40.0000.00717.42
8.1.30.0000.00817.56
8.1.20.0060.00317.73
8.1.10.0070.00017.50
8.1.00.0030.00617.48
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.38
8.0.270.0070.00016.84
8.0.260.0000.00716.75
8.0.250.0050.00316.84
8.0.240.0080.00017.00
8.0.230.0000.00716.93
8.0.220.0050.00216.91
8.0.210.0070.00016.78
8.0.200.0070.00017.07
8.0.190.0030.00616.94
8.0.180.0000.00716.99
8.0.170.0080.00017.01
8.0.160.0040.00416.98
8.0.150.0000.00716.85
8.0.140.0040.00416.85
8.0.130.0000.00513.43
8.0.120.0040.00416.92
8.0.110.0040.00416.95
8.0.100.0030.00517.01
8.0.90.0080.00016.96
8.0.80.0030.01817.04
8.0.70.0040.00417.03
8.0.60.0000.00716.81
8.0.50.0060.00316.91
8.0.30.0140.00516.90
8.0.20.0120.01017.40
8.0.10.0070.00017.12
8.0.00.0000.01816.78
7.4.330.0000.00516.76
7.4.320.0000.00616.53
7.4.300.0060.00016.62
7.4.290.0080.00016.45
7.4.280.0040.00416.59
7.4.270.0030.00316.51
7.4.260.0030.00616.59
7.4.250.0080.00016.43
7.4.240.0080.00016.44
7.4.230.0030.00316.46
7.4.220.0060.01316.46
7.4.210.0150.00616.59
7.4.200.0070.00016.59
7.4.160.0070.01316.59
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0170.00716.46
7.4.120.0100.01116.57
7.4.110.0110.00716.45
7.4.100.0070.01116.63
7.4.90.0100.00716.60
7.4.80.0150.00919.39
7.4.70.0090.01516.55
7.4.60.0060.01116.54
7.4.50.0090.00816.40
7.4.40.0000.01616.32
7.4.30.0120.00416.65
7.4.20.0060.00916.50
7.4.10.0140.00416.62
7.4.00.0090.00815.64
7.3.330.0030.00313.33
7.3.320.0000.00613.26
7.3.310.0070.00016.41
7.3.300.0000.00716.20
7.3.290.0070.00716.35
7.3.280.0090.00916.32
7.3.270.0180.00017.40
7.3.260.0140.00916.27
7.3.250.0090.01216.41
7.3.240.0120.00816.42
7.3.230.0120.00516.63
7.3.210.0170.00016.37
7.3.200.0170.00716.21
7.3.190.0080.00816.43
7.3.180.0070.00916.47
7.3.170.0080.00916.30
7.3.160.0030.01416.36
7.3.150.0110.00416.29
7.3.140.0100.00616.31
7.3.130.0100.00716.39
7.3.120.0100.00615.61
7.3.110.0100.00615.69
7.3.100.0030.01415.49
7.3.90.0080.00515.42
7.3.80.0070.00615.48
7.3.70.0080.00915.58
7.3.60.0090.00915.57
7.3.50.0150.00315.41
7.3.40.0050.00915.44
7.3.30.0080.00715.57
7.3.20.0020.01616.44
7.3.10.0060.01016.44
7.3.00.0120.00516.53
7.2.330.0140.00416.60
7.2.320.0060.01616.68
7.2.310.0140.00316.41
7.2.300.0100.00716.45
7.2.290.0080.00816.40
7.2.280.0080.00816.58
7.2.270.0100.01316.48
7.2.260.0140.00416.61
7.2.250.0040.01715.72
7.2.240.0080.01015.57
7.2.230.0070.01215.70
7.2.220.0050.00915.75
7.2.210.0080.00915.81
7.2.200.0020.01615.74
7.2.190.0050.01215.61
7.2.180.0120.00515.88
7.2.170.0090.00615.66
7.2.160.0070.01016.28
7.2.150.0150.00316.51
7.2.140.0060.01216.48
7.2.130.0070.01016.70
7.2.120.0170.00016.62
7.2.110.0170.00016.52
7.2.100.0160.00616.58
7.2.90.0100.00716.59
7.2.80.0090.00916.57
7.2.70.0100.00716.46
7.2.60.0050.00916.57
7.2.50.0110.00616.41
7.2.40.0060.01116.70
7.2.30.0170.00016.40
7.2.20.0090.00916.54
7.2.10.0070.01016.55
7.2.00.0030.01316.50
7.1.330.0150.00015.73
7.1.320.0060.00915.67
7.1.310.0030.01115.76
7.1.300.0070.01215.78
7.1.290.0070.00615.78
7.1.280.0080.01015.53
7.1.270.0080.00815.73
7.1.260.0050.01015.67
7.1.250.0060.00915.63
7.1.240.0140.00315.61
7.1.230.0060.00915.44
7.1.220.0030.01315.37
7.1.210.0120.00315.50
7.1.200.0070.00615.58
7.1.190.0060.01015.53
7.1.180.0060.00915.62
7.1.170.0070.01015.48
7.1.160.0050.01015.48
7.1.150.0110.00815.34
7.1.140.0180.00315.23
7.1.130.0030.01215.24
7.1.120.0100.00515.55
7.1.110.0080.00717.37
7.1.100.0070.01216.64
7.1.90.0050.00917.21
7.1.80.0060.01017.13
7.1.70.0080.00716.52
7.1.60.0190.00728.47
7.1.50.0230.00928.26
7.1.40.0160.01028.04
7.1.30.0130.01328.12
7.1.20.0140.01328.28
7.1.10.0030.01316.37
7.1.00.0050.00916.29
7.0.330.0070.00715.27
7.0.320.0080.00715.27
7.0.310.0040.01115.08
7.0.300.0100.00515.23
7.0.290.0110.00415.05
7.0.280.0030.01515.12
7.0.270.0110.00415.11
7.0.260.0040.01215.21
7.0.250.0100.00816.20
7.0.240.0030.01116.95
7.0.230.0030.01116.75
7.0.220.0080.00616.92
7.0.210.0080.00616.02
7.0.200.0040.01216.24
7.0.190.0060.01016.08
7.0.180.0070.00915.90
7.0.170.0080.00716.00
7.0.160.0020.01315.89
7.0.150.0070.00915.80
7.0.140.0060.01115.96
7.0.130.0040.01216.09
7.0.120.0070.00916.00
7.0.110.0090.01115.90
7.0.100.0070.01115.92
7.0.90.0050.01215.84
7.0.80.0060.01215.93
7.0.70.0130.00815.26
7.0.60.0130.00715.06
7.0.50.0090.01015.31
7.0.40.0100.01115.35
7.0.30.0090.01215.38
7.0.20.0090.01316.02
7.0.10.0060.01116.00
7.0.00.0050.01215.96
5.6.400.0040.01316.17
5.6.390.0100.00715.78
5.6.380.0060.01215.70
5.6.370.0100.00715.99
5.6.360.0130.00716.15
5.6.350.0100.01015.68
5.6.340.0130.00716.04
5.6.330.0070.01016.10
5.6.320.0100.00715.69
5.6.310.0120.00916.12
5.6.300.0090.00916.19
5.6.290.0120.00615.73
5.6.280.0120.00916.23
5.6.270.0130.00716.01
5.6.260.0140.00816.18
5.6.250.0080.01215.88
5.6.240.0090.01315.49
5.6.230.0080.01115.76
5.6.220.0060.01516.02
5.6.210.0060.01415.98
5.6.200.0160.00415.73
5.6.190.0090.01215.68
5.6.180.0070.01115.80
5.6.170.0130.01316.03
5.6.160.0130.00715.67
5.6.150.0110.01115.99
5.6.140.0160.00915.70
5.6.130.0120.00915.92
5.6.120.0160.00615.91
5.6.110.0030.01715.93
5.6.100.0120.00916.06
5.6.90.0090.00915.85
5.6.80.0120.00615.86
5.6.70.0080.01115.73
5.6.60.0060.01415.68
5.6.50.0120.00615.94
5.6.40.0070.01115.77
5.6.30.0100.01015.78
5.6.20.0030.01515.82
5.6.10.0120.01215.77
5.6.00.0060.01515.72

preferences:
35.84 ms | 400 KiB | 5 Q