3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(2,3,1,5,4,9,6,8,7); function cmp($a,$b){ return $a <=> $b; } usort($arr,"cmp"); print_r($arr);

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.0030.01218.18
8.3.50.0100.00821.98
8.3.40.0060.01518.51
8.3.30.0040.01118.67
8.3.20.0040.00420.20
8.3.10.0080.00020.46
8.3.00.0040.00420.82
8.2.180.0130.00716.50
8.2.170.0120.00322.96
8.2.160.0070.00720.37
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00019.66
8.2.110.0060.00319.27
8.2.100.0040.00817.78
8.2.90.0090.00019.27
8.2.80.0040.00417.97
8.2.70.0030.00517.25
8.2.60.0000.00917.80
8.2.50.0050.00318.09
8.2.40.0080.00020.34
8.2.30.0040.00419.55
8.2.20.0000.00717.75
8.2.10.0000.00717.99
8.2.00.0040.00418.10
8.1.280.0090.01225.92
8.1.270.0040.00423.87
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00723.71
8.1.230.0040.00820.84
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0080.00018.46
8.1.160.0040.00420.90
8.1.150.0050.00218.89
8.1.140.0040.00419.43
8.1.130.0030.00317.69
8.1.120.0070.00017.53
8.1.110.0060.00317.37
8.1.100.0000.00817.35
8.1.90.0040.00317.36
8.1.80.0050.00317.50
8.1.70.0090.00017.36
8.1.60.0040.00417.47
8.1.50.0040.00417.53
8.1.40.0040.00417.42
8.1.30.0040.00417.58
8.1.20.0040.00417.48
8.1.10.0040.00417.43
8.1.00.0030.00517.29
8.0.300.0050.00219.94
8.0.290.0030.00516.75
8.0.280.0050.00318.43
8.0.270.0000.00717.17
8.0.260.0000.00717.26
8.0.250.0030.00316.98
8.0.240.0030.00317.00
8.0.230.0040.00416.91
8.0.220.0000.00716.79
8.0.210.0060.00316.80
8.0.200.0000.00816.87
8.0.190.0000.00717.00
8.0.180.0040.00416.83
8.0.170.0040.00416.77
8.0.160.0040.00416.93
8.0.150.0030.00316.84
8.0.140.0070.00016.86
8.0.130.0030.00313.35
8.0.120.0070.00316.78
8.0.110.0060.00316.89
8.0.100.0000.00916.88
8.0.90.0040.00416.98
8.0.80.0130.00316.95
8.0.70.0050.00316.95
8.0.60.0040.00416.88
8.0.50.0040.00416.84
8.0.30.0110.01316.96
8.0.20.0100.01017.40
8.0.10.0040.00416.91
8.0.00.0070.01116.69
7.4.330.0000.00515.08
7.4.320.0040.00416.61
7.4.300.0030.00316.65
7.4.290.0030.00516.59
7.4.280.0040.00416.59
7.4.270.0030.00316.54
7.4.260.0060.00316.63
7.4.250.0040.00416.48
7.4.240.0070.00016.67
7.4.230.0000.00716.59
7.4.220.0090.00716.54
7.4.210.0130.00716.56
7.4.200.0070.00016.36
7.4.160.0090.00616.42
7.4.150.0090.00917.40
7.4.140.0160.00717.86
7.4.130.0130.00416.45
7.4.120.0100.00716.52
7.4.110.0090.00916.39
7.4.100.0120.00616.63
7.4.90.0120.00616.39
7.4.80.0100.01119.39
7.4.70.0100.01016.51
7.4.60.0080.00816.35
7.4.50.0060.00916.59
7.4.40.0100.01316.42
7.4.30.0060.00916.51
7.4.00.0080.01014.66
7.3.330.0030.00413.19
7.3.320.0030.00313.30
7.3.310.0070.00016.29
7.3.300.0030.00316.10
7.3.290.0030.00316.25
7.3.280.0060.00916.23
7.3.270.0030.01417.40
7.3.260.0130.00416.53
7.3.250.0140.00316.29
7.3.240.0060.01016.19
7.3.230.0120.00616.39
7.3.210.0070.01016.54
7.3.200.0070.01419.39
7.3.190.0100.00616.15
7.3.180.0040.01616.43
7.3.170.0060.01216.35
7.3.160.0090.00616.45
7.3.120.0050.00914.57
7.3.110.0030.01414.45
7.3.100.0060.00314.61
7.3.90.0090.00014.85
7.3.80.0120.00314.62
7.3.70.0070.00314.71
7.3.60.0060.00614.72
7.3.50.0040.00914.76
7.3.40.0060.00314.60
7.3.30.0030.00614.74
7.3.20.0060.00916.60
7.3.10.0060.00616.50
7.3.00.0070.00416.38
7.2.330.0190.00716.52
7.2.320.0130.01016.34
7.2.310.0060.01216.52
7.2.300.0060.01516.47
7.2.290.0090.00916.65
7.2.250.0130.00315.11
7.2.240.0030.01415.15
7.2.230.0030.01414.68
7.2.220.0080.00014.93
7.2.210.0030.01014.41
7.2.200.0070.00714.75
7.2.190.0080.00814.78
7.2.180.0040.01114.74
7.2.170.0070.00714.87
7.2.60.0090.00616.73
7.1.330.0090.00315.96
7.1.320.0080.00415.41
7.1.310.0070.00315.84
7.1.300.0110.00315.51
7.1.290.0030.00715.91
7.1.280.0000.01015.91
7.1.270.0000.01215.46
7.1.260.0030.00915.60
7.1.200.0210.00315.11
7.1.70.0000.00817.14
7.1.60.0100.01619.15
7.1.50.0120.00816.72
7.1.00.0000.07722.28
7.0.200.0000.00816.73
7.0.60.0330.03719.97
7.0.50.0100.07717.83
7.0.40.0130.07020.09
7.0.30.0230.07020.23
7.0.20.0130.04320.25
7.0.10.0130.08020.21
7.0.00.0070.07720.21
5.6.280.0100.06321.06
5.6.210.0030.04320.61
5.6.200.0070.05018.22
5.6.190.0070.04020.52
5.6.180.0100.04020.33
5.6.170.0300.07720.50
5.6.160.0100.08320.44
5.6.150.0070.07018.13
5.6.140.0030.08718.19
5.6.130.0000.08318.17
5.6.120.0000.05321.05
5.6.110.0100.04021.01
5.6.100.0000.04720.96
5.6.90.0030.06721.03
5.6.80.0030.04020.48
5.5.350.0270.05320.49
5.5.340.0100.07717.91
5.5.330.0030.04020.47
5.5.320.0600.06320.27
5.5.310.0230.03720.32
5.5.300.0030.04318.03
5.5.290.0000.09017.97
5.5.280.0030.08320.90
5.5.270.0070.04020.87
5.5.260.0130.03320.76
5.5.250.0130.08320.56
5.5.240.0070.08320.23

preferences:
32.18 ms | 401 KiB | 5 Q