3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 0 => (object)array( 'tenure' => '1 year to less than 2 years' ), 1 => (object)array( 'tenure' => '10 years to less than 15 years' ), 2 => (object)array( 'tenure' => '15 years or more' ), 3 => (object)array( 'tenure' => '2 years to less than 5 years' ), 4 => (object)array( 'tenure' => '5 years to less than 10 years' ) ); usort($array, function ($a, $b) { return (int)$a->tenure - (int)$b->tenure; }); print_r($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.0080.00417.73
8.4.120.0120.00820.45
8.4.110.0100.01018.88
8.4.100.0080.00517.99
8.4.90.0070.00417.75
8.4.80.0130.00617.74
8.4.70.0080.00818.09
8.4.60.0120.00918.98
8.4.50.0130.00718.52
8.4.40.0000.00919.20
8.4.30.0210.00020.27
8.4.20.0170.00320.64
8.4.10.0060.00319.44
8.3.260.0150.00416.32
8.3.250.0040.00318.81
8.3.240.0130.00616.61
8.3.230.0120.00816.90
8.3.220.0060.00217.25
8.3.210.0110.00618.35
8.3.200.0150.00516.54
8.3.190.0070.01318.83
8.3.180.0070.00416.78
8.3.170.0150.00318.93
8.3.160.0090.00018.53
8.3.150.0100.00316.68
8.3.140.0150.00318.98
8.3.130.0080.00018.57
8.3.120.0030.00618.71
8.3.110.0040.00416.64
8.3.100.0090.00316.88
8.3.90.0090.00026.77
8.3.80.0100.00016.50
8.3.70.0110.00416.88
8.3.60.0110.00718.55
8.3.50.0110.01116.73
8.3.40.0140.00418.89
8.3.30.0090.00618.67
8.3.20.0040.00421.69
8.3.10.0080.00019.20
8.3.00.0080.00021.75
8.2.290.0050.00318.98
8.2.280.0100.00918.38
8.2.270.0070.01019.08
8.2.260.0110.00716.74
8.2.250.0110.00416.63
8.2.240.0060.00318.71
8.2.230.0060.00320.94
8.2.220.0040.00724.06
8.2.210.0120.00326.77
8.2.200.0030.00616.63
8.2.190.0140.00016.63
8.2.180.0150.00325.92
8.2.170.0100.01318.91
8.2.160.0040.01120.38
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.00920.58
8.2.100.0060.00618.03
8.2.90.0040.00417.88
8.2.80.0080.00018.91
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00519.60
8.2.30.0000.00719.29
8.2.20.0000.00818.13
8.2.10.0000.00719.07
8.2.00.0040.00419.49
8.1.330.0080.01116.21
8.1.320.0110.00816.20
8.1.310.0090.00918.56
8.1.300.0080.00017.84
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0000.00822.34
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00718.93
8.1.230.0090.00317.77
8.1.220.0040.00417.77
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0030.00517.35
8.1.180.0030.00518.10
8.1.170.0000.00818.54
8.1.160.0050.00218.81
8.1.150.0040.00418.94
8.1.140.0030.00320.93
8.1.130.0000.00720.14
8.1.120.0030.00317.50
8.1.110.0050.00317.37
8.1.100.0080.00017.49
8.1.90.0080.00017.36
8.1.80.0000.00817.52
8.1.70.0070.00017.41
8.1.60.0070.00317.54
8.1.50.0000.00717.57
8.1.40.0050.00317.54
8.1.30.0000.00917.59
8.1.20.0030.00517.65
8.1.10.0090.00017.66
8.1.00.0040.00417.52
8.0.300.0050.00318.77
8.0.290.0060.00316.63
8.0.280.0030.00318.40
8.0.270.0030.00317.21
8.0.260.0040.00418.30
8.0.250.0070.00016.96
8.0.240.0040.00416.97
8.0.230.0000.00716.93
8.0.220.0040.00416.77
8.0.210.0070.00016.84
8.0.200.0060.00017.03
8.0.190.0000.00817.03
8.0.180.0000.00716.85
8.0.170.0030.00917.02
8.0.160.0030.00516.93
8.0.150.0060.00316.94
8.0.140.0000.00716.94
8.0.130.0070.00013.35
8.0.120.0050.00316.83
8.0.110.0000.00716.83
8.0.100.0050.00217.00
8.0.90.0040.00416.85
8.0.80.0140.00416.95
8.0.70.0040.00416.83
8.0.60.0040.00416.83
8.0.50.0040.00417.00
8.0.30.0120.00417.11
8.0.20.0130.01316.95
8.0.10.0040.00417.11
8.0.00.0150.00516.82
7.4.330.0000.00515.55
7.4.320.0060.00016.44
7.4.300.0030.00316.46
7.4.290.0050.00216.46
7.4.280.0050.00516.61
7.4.270.0030.00316.66
7.4.260.0040.00416.59
7.4.250.0050.00316.57
7.4.240.0050.00316.56
7.4.230.0030.00316.61
7.4.220.0040.00416.51
7.4.210.0080.00916.56
7.4.200.0030.00516.58
7.4.160.0080.00816.53
7.4.140.0140.00417.86
7.4.130.0100.00716.69
7.4.120.0130.00316.41
7.4.110.0140.00316.54
7.4.100.0070.01116.31
7.4.90.0080.00916.42
7.4.80.0100.00719.39
7.4.70.0130.00716.59
7.4.60.0100.01016.45
7.4.50.0070.01016.37
7.4.40.0130.00316.43
7.4.00.0080.00914.89
7.3.330.0000.00513.30
7.3.320.0030.00313.29
7.3.310.0000.00716.30
7.3.300.0070.00016.27
7.3.290.0030.00316.23
7.3.280.0080.00816.25
7.3.260.0090.00916.37
7.3.240.0070.00916.33
7.3.230.0170.00316.15
7.3.210.0080.00816.40
7.3.200.0030.01516.31
7.3.190.0050.00516.59
7.3.180.0090.00916.60
7.3.170.0120.00316.46
7.3.160.0100.01216.49
7.3.120.0040.01615.01
7.3.110.0090.00914.43
7.3.100.0100.00614.97
7.3.90.0060.00915.03
7.3.80.0100.00314.70
7.3.70.0060.00614.58
7.3.60.0030.01314.79
7.3.50.0070.00614.53
7.3.40.0110.00814.68
7.3.30.0050.01114.68
7.3.20.0180.00215.39
7.3.10.0160.00415.61
7.3.00.0060.00915.71
7.2.330.0070.01316.87
7.2.320.0090.00616.46
7.2.310.0120.00416.63
7.2.300.0100.00716.61
7.2.290.0170.00016.66
7.2.250.0060.01315.07
7.2.240.0070.01415.13
7.2.230.0100.00615.00
7.2.220.0060.00914.79
7.2.210.0040.01115.04
7.2.200.0040.00815.22
7.2.190.0070.01115.13
7.2.180.0070.00715.06
7.2.170.0090.00815.05
7.2.160.0060.01515.13
7.2.150.0170.02114.97
7.2.140.1050.00715.26
7.2.130.0090.01215.05
7.2.120.0130.00615.06
7.2.110.0150.00614.97
7.2.100.0110.00615.01
7.2.90.0160.00314.85
7.2.80.0110.01114.83
7.2.70.0230.00715.21
7.2.60.0060.00914.92
7.2.50.0160.00314.96
7.2.40.0140.00615.00
7.2.30.0140.01414.99
7.2.20.0180.01415.09
7.2.10.0030.01714.93
7.2.00.0090.01015.00
7.1.330.0000.01415.84
7.1.320.0050.00815.66
7.1.310.0000.01415.67
7.1.300.0080.00015.73
7.1.290.0110.00715.66
7.1.280.0050.00914.74
7.1.270.0100.00314.68
7.1.260.0120.00514.82
7.1.250.0200.00613.91

preferences:
28.89 ms | 403 KiB | 5 Q