3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_sorted($array) { $n = count($array); for ($a=0; $a<$n-1; $a++) { for ($b=$a+1; $b<$n; $b++) { if ($array[$a] > $array[$b]) { return false; } } } return true; } $array = array(INF, array(), (object)array()); sort($array); var_dump(is_sorted($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.70.0110.00316.50
8.3.60.0110.00416.63
8.3.50.0070.01221.14
8.3.40.0110.00418.89
8.3.30.0140.00018.84
8.3.20.0040.00420.38
8.3.10.0080.00021.73
8.3.00.0070.00023.66
8.2.180.0130.00616.88
8.2.170.0060.01222.96
8.2.160.0130.00020.53
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0030.00519.76
8.2.120.0000.00826.35
8.2.110.0060.00322.11
8.2.100.0060.00618.05
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0100.00317.75
8.2.60.0050.00318.03
8.2.50.0040.00418.07
8.2.40.0030.00522.27
8.2.30.0000.00820.67
8.2.20.0000.00817.83
8.2.10.0040.00418.01
8.2.00.0060.00318.12
8.1.280.0150.00625.92
8.1.270.0000.00822.01
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0030.00622.55
8.1.230.0030.00719.00
8.1.220.0060.00317.77
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0040.00418.49
8.1.160.0040.00420.79
8.1.150.0000.00718.96
8.1.140.0030.00519.58
8.1.130.0000.00717.56
8.1.120.0050.00217.50
8.1.110.0070.00017.44
8.1.100.0000.00717.47
8.1.90.0090.00017.45
8.1.80.0070.00017.36
8.1.70.0070.00017.45
8.1.60.0080.00017.56
8.1.50.0000.00817.44
8.1.40.0000.00817.51
8.1.30.0090.00017.57
8.1.20.0040.00417.62
8.1.10.0090.00017.60
8.1.00.0050.00317.53
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.33
8.0.260.0030.00317.27
8.0.250.0040.00416.95
8.0.240.0000.01017.04
8.0.230.0030.00316.92
8.0.220.0000.00816.93
8.0.210.0000.00716.89
8.0.200.0030.00317.01
8.0.190.0000.00817.02
8.0.180.0040.00417.00
8.0.170.0040.00417.03
8.0.160.0040.00416.86
8.0.150.0000.00816.94
8.0.140.0000.00716.88
8.0.130.0030.00313.40
8.0.120.0040.00416.95
8.0.110.0070.00016.87
8.0.100.0040.00416.83
8.0.90.0000.00716.86
8.0.80.0120.00416.94
8.0.70.0000.00716.86
8.0.60.0040.00416.98
8.0.50.0040.00416.99
8.0.30.0090.00816.98
8.0.20.0100.01017.40
8.0.10.0040.00416.96
8.0.00.0090.00816.71
7.4.330.0050.00016.89
7.4.320.0030.00316.51
7.4.300.0000.00816.52
7.4.290.0030.00316.51
7.4.280.0030.00616.50
7.4.270.0070.00016.61
7.4.260.0080.00016.52
7.4.250.0000.00916.49
7.4.240.0030.00416.46
7.4.230.0050.00316.60
7.4.220.0090.00916.70
7.4.210.0030.01016.44
7.4.200.0030.00316.61
7.4.160.0140.00716.47
7.4.150.0260.00017.40
7.4.140.0080.01317.86
7.4.130.0100.00716.53
7.4.120.0060.01416.43
7.4.110.0150.00316.51
7.4.100.0120.00916.66
7.4.90.0070.01016.59
7.4.80.0180.00419.39
7.4.70.0100.00716.55
7.4.60.0120.00616.45
7.4.50.0040.01116.50
7.4.40.0090.00916.45
7.4.30.0100.00916.61
7.4.10.0100.00814.86
7.4.00.0090.00715.17
7.3.330.0030.00413.18
7.3.320.0000.00613.38
7.3.310.0000.00716.39
7.3.300.0000.00716.36
7.3.290.0110.00816.31
7.3.280.0080.00916.37
7.3.270.0160.00017.40
7.3.260.0100.00716.55
7.3.250.0090.01216.51
7.3.240.0060.01316.55
7.3.230.0180.00016.49
7.3.210.0130.00316.59
7.3.200.0060.01219.39
7.3.190.0160.00716.57
7.3.180.0100.00716.55
7.3.170.0080.00816.40
7.3.160.0100.01016.43
7.3.130.0050.01014.86
7.3.120.0050.00914.80
7.3.110.0050.01114.81
7.3.100.0100.00714.84
7.3.90.0070.00814.90
7.3.80.0040.01114.88
7.3.70.0050.00814.75
7.3.60.0030.01014.83
7.3.50.0100.00414.85
7.3.40.0040.00814.69
7.3.30.0050.00514.83
7.3.20.0040.01016.63
7.3.10.0040.00716.62
7.3.00.0040.00816.58
7.2.330.0070.01116.79
7.2.320.0030.01416.68
7.2.310.0030.01316.86
7.2.300.0110.00516.66
7.2.290.0110.01116.66
7.2.260.0080.01014.81
7.2.250.0050.01214.88
7.2.240.0060.00915.18
7.2.230.0080.00715.10
7.2.220.0110.00814.96
7.2.210.0090.00715.07
7.2.200.0060.00914.94
7.2.190.0070.01015.07
7.2.180.0020.01315.13
7.2.170.0040.01014.94
7.2.160.0040.01015.01
7.2.150.0040.01016.84
7.2.140.0040.01116.93
7.2.130.0080.00716.73
7.2.120.0040.00916.73
7.2.110.0060.00916.95
7.2.100.0060.00716.86
7.2.90.0050.00616.83
7.2.80.0060.00816.86
7.2.70.0050.00816.79
7.2.60.0060.00816.86
7.2.50.0060.00916.87
7.2.40.0050.00816.81
7.2.30.0050.00816.77
7.2.20.0060.00616.83
7.2.10.0080.00716.95
7.2.00.0070.00717.31
7.1.330.0050.00715.76
7.1.320.0070.01115.71
7.1.310.0090.00515.80
7.1.300.0060.00915.81
7.1.290.0030.00715.74
7.1.280.0100.00515.82
7.1.270.0070.00515.66
7.1.260.0000.01115.79
7.1.250.0050.00715.74
7.1.240.0060.00715.72
7.1.230.0030.00715.63
7.1.220.0060.00715.73
7.1.210.0090.00515.67
7.1.200.0060.00615.80
7.1.190.0070.00715.75
7.1.180.0040.00615.86
7.1.170.0050.00915.75
7.1.160.0070.00515.73
7.1.150.0050.01015.65
7.1.140.0080.00515.74
7.1.130.0060.00615.78
7.1.120.0110.00215.75
7.1.110.0080.00515.75
7.1.100.0050.00716.26
7.1.90.0070.00515.65
7.1.80.0060.00515.73
7.1.70.0080.00516.05
7.1.60.0040.01016.53
7.1.50.0070.00719.50
7.1.40.0100.00615.59
7.1.30.0040.00715.75
7.1.20.0080.00615.75
7.1.10.0060.00615.68
7.1.00.0080.01817.05
7.0.330.0060.00815.21
7.0.320.0040.00515.36
7.0.310.0030.00815.21
7.0.300.0070.00715.33
7.0.290.0030.01015.24
7.0.280.0020.00915.29
7.0.270.0080.00415.21
7.0.260.0080.00415.16
7.0.250.0060.00515.36
7.0.240.0090.00415.45
7.0.230.0040.00915.41
7.0.220.0060.00715.35
7.0.210.0040.00915.40
7.0.200.0040.00815.60
7.0.190.0070.00615.31
7.0.180.0080.00615.24
7.0.170.0070.00415.20
7.0.160.0070.00615.42
7.0.150.0060.00415.34
7.0.140.0070.00615.26
7.0.130.0070.00615.40
7.0.120.0050.00715.37
7.0.110.0040.01015.34
7.0.100.0020.00915.43
7.0.90.0050.00515.37
7.0.80.0050.00815.24
7.0.70.0080.00615.33
7.0.60.0060.01816.54
7.0.50.0060.01815.92
7.0.40.0090.01914.86
7.0.30.0090.01514.80
7.0.20.0090.01714.84
7.0.10.0060.02114.91
7.0.00.0060.02314.93
5.6.400.0060.00514.52
5.6.390.0050.00914.29
5.6.380.0050.00714.26
5.6.370.0040.00914.28
5.6.360.0080.00714.29
5.6.350.0070.00714.14
5.6.340.0060.01014.35
5.6.330.0060.00814.37
5.6.320.0050.00814.27
5.6.310.0070.00714.15
5.6.300.0040.00814.32
5.6.290.0050.00714.10
5.6.280.0040.01215.57
5.6.270.0070.00714.27
5.6.260.0060.00814.35
5.6.250.0040.00714.22
5.6.240.0100.00514.34
5.6.230.0040.00814.36
5.6.220.0090.00414.27
5.6.210.0050.02015.53
5.6.200.0040.01714.97
5.6.190.0080.01415.40
5.6.180.0110.02215.47
5.6.170.0110.02115.44
5.6.160.0090.01815.43
5.6.150.0080.01415.06
5.6.140.0060.01315.11
5.6.130.0070.01915.13
5.6.120.0060.02415.66
5.6.110.0070.02215.60
5.6.100.0080.01315.70
5.6.90.0040.02215.51
5.6.80.0060.02515.47
5.6.70.0090.00514.25
5.6.60.0080.00414.26
5.6.50.0060.00714.10
5.6.40.0060.00814.13
5.6.30.0040.01014.22
5.6.20.0050.01014.27
5.6.10.0060.00614.18
5.6.00.0080.00614.13
5.5.380.0050.00512.65
5.5.370.0040.00712.79
5.5.360.0040.00712.75
5.5.350.0050.02314.32
5.5.340.0060.02213.83
5.5.330.0060.02214.18
5.5.320.0160.01814.36
5.5.310.0090.01314.29
5.5.300.0080.01813.79
5.5.290.0070.02113.62
5.5.280.0060.01514.21
5.5.270.0040.02314.43
5.5.260.0070.02114.33
5.5.250.0040.01914.35
5.5.240.0040.02614.16
5.5.230.0040.00612.49
5.5.220.0020.00712.59
5.5.210.0070.00312.64
5.5.200.0040.00912.68
5.5.190.0040.00712.74
5.5.180.0070.00612.73
5.5.170.0020.00612.76
5.5.160.0040.00712.61
5.5.150.0050.00412.70
5.5.140.0040.00712.73
5.5.130.0050.00412.82
5.5.120.0040.00612.65
5.5.110.0060.00612.72
5.5.100.0060.00512.55
5.5.90.0060.00712.67
5.5.80.0040.00712.64
5.5.70.0040.00612.77
5.5.60.0060.00612.63
5.5.50.0040.00712.66
5.5.40.0040.00412.64
5.5.30.0050.00712.50
5.5.20.0030.00712.68
5.5.10.0040.00712.52
5.5.00.0030.00812.72

preferences:
55.56 ms | 401 KiB | 5 Q