3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr['i1'] = 99; $arr['i2'] = 89; function cmp($a, $b) { global $arr; if ($arr[$a] > $arr[$b]) { return 1; } if ($arr[$q] < $arr[$b]) { return -1; } return 0; } if (uksort($arr, 'cmp')) { echo "success"; } else { echo "failure"; } 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.0110.00716.23
8.3.50.0090.01217.21
8.3.40.0110.00418.80
8.3.30.0070.00718.83
8.3.20.0050.00318.90
8.3.10.0090.00018.94
8.3.00.0040.00419.63
8.2.180.0110.01116.63
8.2.170.0070.01022.96
8.2.160.0100.00320.39
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00019.28
8.2.110.0040.00821.06
8.2.100.0000.01017.91
8.2.90.0030.00519.48
8.2.80.0000.00719.21
8.2.70.0000.00817.60
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0030.00518.34
8.2.30.0030.00518.09
8.2.20.0030.00617.55
8.2.10.0000.00817.70
8.2.00.0060.00317.79
8.1.280.0100.01025.92
8.1.270.0000.00824.66
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0070.00720.77
8.1.230.0040.00820.98
8.1.220.0080.00017.74
8.1.210.0030.00518.90
8.1.200.0060.00317.25
8.1.190.0040.00417.53
8.1.180.0090.00018.10
8.1.170.0000.00818.74
8.1.160.0070.00018.71
8.1.150.0000.00818.59
8.1.140.0050.00217.42
8.1.130.0030.00317.91
8.1.120.0070.00017.49
8.1.110.0080.00017.40
8.1.100.0000.00717.44
8.1.90.0070.00017.32
8.1.80.0000.00717.31
8.1.70.0030.00317.35
8.1.60.0070.00017.48
8.1.50.0050.00217.47
8.1.40.0040.00417.40
8.1.30.0040.00417.49
8.1.20.0040.00417.50
8.1.10.0040.00417.64
8.1.00.0040.00417.43
8.0.300.0070.00019.93
8.0.290.0000.00716.75
8.0.280.0000.00718.49
8.0.270.0030.00317.32
8.0.260.0000.00616.71
8.0.250.0000.00716.89
8.0.240.0070.00316.77
8.0.230.0040.00416.90
8.0.220.0000.00716.87
8.0.210.0000.00716.88
8.0.200.0030.00316.96
8.0.190.0000.00716.91
8.0.180.0060.00616.75
8.0.170.0090.00016.81
8.0.160.0000.00716.95
8.0.150.0000.00816.83
8.0.140.0050.00316.78
8.0.130.0050.00013.29
8.0.120.0030.00516.85
8.0.110.0040.00416.82
8.0.100.0040.00416.66
8.0.90.0070.00016.96
8.0.80.0110.00316.73
8.0.70.0050.00216.84
8.0.60.0000.00716.89
8.0.50.0000.00816.80
8.0.30.0070.01017.31
8.0.20.0070.01016.88
8.0.10.0030.00516.91
8.0.00.0110.01116.91
7.4.330.0000.00512.92
7.4.320.0000.00716.48
7.4.300.0000.00616.56
7.4.290.0000.00616.48
7.4.280.0080.00016.43
7.4.270.0000.00716.39
7.4.260.0060.00013.24
7.4.250.0000.00716.41
7.4.240.0050.00216.53
7.4.230.0000.00716.65
7.4.220.0070.01116.48
7.4.210.0050.01016.54
7.4.200.0070.00016.65
7.4.190.0040.00416.60
7.4.160.0060.01016.39
7.4.150.0060.01216.48
7.4.140.0090.00816.40
7.4.130.0080.01016.53
7.4.120.0140.00716.35
7.4.110.0070.01016.42
7.4.100.0120.00916.64
7.4.90.0090.00916.41
7.4.80.0090.00919.39
7.4.70.0160.00716.53
7.4.60.0060.00916.50
7.4.50.0130.00016.63
7.4.40.0160.00016.52
7.4.30.0070.01016.50
7.4.00.0060.00915.02
7.3.330.0030.00313.36
7.3.320.0040.00313.16
7.3.310.0030.00516.13
7.3.300.0030.00316.28
7.3.290.0010.00316.26
7.3.280.0060.01216.32
7.3.270.0140.00316.35
7.3.260.0170.00316.49
7.3.250.0120.00716.31
7.3.240.0080.00816.33
7.3.230.0090.00916.62
7.3.210.0100.01016.54
7.3.200.0090.00916.25
7.3.190.0070.01116.59
7.3.180.0110.00716.30
7.3.170.0100.00616.46
7.3.160.0090.00616.48
7.3.120.0070.00714.83
7.3.00.0030.00916.50
7.2.330.0180.00016.39
7.2.320.0070.01516.38
7.2.310.0200.01416.36
7.2.300.0120.00916.73
7.2.290.0130.00316.70
7.2.130.0080.00417.00
7.2.120.0080.00616.95
7.2.110.0040.00716.93
7.2.100.0070.00416.71
7.2.90.0070.01117.13
7.2.80.0060.00616.72
7.2.70.0000.01617.00
7.2.60.0060.00516.98
7.2.50.0090.00616.71
7.2.40.0140.00016.76
7.2.30.0060.00617.02
7.2.20.0110.00416.74
7.2.10.0000.01616.95
7.2.00.0100.00218.19
7.1.250.0060.00615.91
7.1.240.0080.00615.79
7.1.230.0100.00615.63
7.1.220.0060.00315.89
7.1.210.0070.00715.49
7.1.200.0080.00315.88
7.1.190.0070.00715.54
7.1.180.0100.00615.55
7.1.170.0000.01515.51
7.1.160.0080.00315.65
7.1.150.0090.00315.71
7.1.140.0070.01115.49
7.1.130.0030.01215.72
7.1.120.0070.00615.91
7.1.110.0030.00915.73
7.1.100.0030.01016.85
7.1.90.0080.00815.73
7.1.80.0040.00715.54
7.1.70.0050.00716.19
7.1.60.0050.01217.50
7.1.50.0130.00316.31
7.1.40.0060.00915.82
7.1.30.0090.00615.88
7.1.20.0030.01415.71
7.1.10.0000.01415.69
7.1.00.0050.04319.21
7.0.330.0000.01015.44
7.0.320.0030.00915.62
7.0.310.0070.00715.49
7.0.300.0040.00415.14
7.0.290.0100.00315.34
7.0.280.0030.01315.45
7.0.270.0060.00615.23
7.0.260.0000.01315.04
7.0.250.0080.00615.19
7.0.240.0070.00715.41
7.0.230.0030.00715.38
7.0.220.0000.01315.25
7.0.210.0080.00415.18
7.0.200.0380.00715.13
7.0.190.0030.00615.51
7.0.180.0000.01515.62
7.0.170.0030.01015.32
7.0.160.0060.00615.18
7.0.150.0070.00315.43
7.0.140.0030.04218.73
7.0.130.0090.00315.21
7.0.120.0030.00715.34
7.0.110.0130.02917.79
7.0.100.0030.04317.76
7.0.90.0150.03117.52
7.0.80.0400.04017.68
7.0.70.0250.03317.66
7.0.60.0100.02317.56
7.0.50.0150.02517.68
7.0.40.0090.02316.57
7.0.30.0070.02516.69
7.0.20.0070.03116.54
7.0.10.0060.01816.56
7.0.00.0030.02316.55
5.6.380.0090.00614.43
5.6.370.0070.00714.13
5.6.360.0030.01014.57
5.6.350.0100.00014.18
5.6.340.0030.01014.65
5.6.330.0040.01114.59
5.6.320.0000.01614.66
5.6.310.0090.00614.70
5.6.300.0120.00414.59
5.6.290.0090.00014.05
5.6.280.0070.03717.76
5.6.270.0080.00314.64
5.6.260.0030.03517.57
5.6.250.0070.04517.63
5.6.240.0030.03017.67
5.6.230.0030.04317.61
5.6.220.0050.03517.50
5.6.210.0030.02717.46
5.6.200.0050.03117.59
5.6.190.0080.02517.70
5.6.180.0050.02517.44
5.6.170.0070.02217.62
5.6.160.0060.02317.76
5.6.150.0030.02917.43
5.6.140.0070.03517.44
5.6.130.0040.02417.46
5.6.120.0080.04017.63
5.6.110.0070.04717.52
5.6.100.0050.04217.53
5.6.90.0080.03817.42
5.6.80.0020.04217.27
5.6.70.0050.04317.09
5.6.60.0030.04017.28
5.6.50.0080.03717.10
5.6.40.0080.03017.29
5.6.30.0050.05017.15
5.6.20.0070.04017.40
5.6.10.0060.04417.22
5.6.00.0090.03717.06
5.5.380.0020.02714.56
5.5.370.0030.04614.56
5.5.360.0090.03114.43
5.5.350.0020.02814.33
5.5.340.0050.02314.64
5.5.330.0050.01914.72
5.5.320.0100.01514.84
5.5.310.0060.01814.70
5.5.300.0080.03514.65
5.5.290.0020.04814.63
5.5.280.0060.02214.63
5.5.270.0020.04614.71
5.5.260.0020.04314.52
5.5.250.0070.04114.42
5.5.240.0020.04314.30
5.5.230.0070.02114.31
5.5.220.0080.03614.40
5.5.210.0090.01714.27
5.5.200.0040.03114.25
5.5.190.0070.03514.16
5.5.180.0020.04114.39
5.5.170.0090.00311.44
5.5.160.0070.03214.36
5.5.150.0060.03514.14
5.5.140.0030.04214.47
5.5.130.0080.04014.14
5.5.120.0040.03314.24
5.5.110.0070.04314.32
5.5.100.0050.01914.14
5.5.90.0110.03114.36
5.5.80.0040.02214.25
5.5.70.0000.03614.32
5.5.60.0100.04014.20
5.5.50.0100.03814.34
5.5.40.0090.03714.26
5.5.30.0070.04214.23
5.5.20.0070.03714.31
5.5.10.0080.02814.24
5.5.00.0040.04414.20
5.4.450.0050.02815.41
5.4.440.0080.03715.41
5.4.430.0030.04315.46
5.4.420.0070.03915.38
5.4.410.0050.03815.19
5.4.400.0040.03415.13
5.4.390.0070.03815.19
5.4.380.0020.03715.09
5.4.370.0030.02015.14
5.4.360.0030.02315.17
5.4.350.0030.03715.29
5.4.340.0050.03015.00
5.4.330.0110.00011.13
5.4.320.0100.04015.22
5.4.310.0110.03315.13
5.4.300.0050.04115.01
5.4.290.0050.04015.12
5.4.280.0070.03315.18
5.4.270.0060.03515.00
5.4.260.0070.03415.17
5.4.250.0090.02415.04
5.4.240.0030.02715.06
5.4.230.0090.03914.99
5.4.220.0090.03515.00
5.4.210.0030.02715.21
5.4.200.0030.04315.13
5.4.190.0030.04015.20
5.4.180.0060.03614.97
5.4.170.0070.03614.97
5.4.160.0020.02315.02
5.4.150.0060.04115.18
5.4.140.0050.04113.86
5.4.130.0070.02013.83
5.4.120.0080.03513.67
5.4.110.0030.02313.89
5.4.100.0050.02713.80
5.4.90.0080.01713.69
5.4.80.0040.02013.80
5.4.70.0040.01813.92
5.4.60.0020.02313.82
5.4.50.0030.01913.93
5.4.40.0050.02013.95
5.4.30.0030.02113.75
5.4.20.0030.02213.76
5.4.10.0000.02613.76
5.4.00.0050.01713.55
5.3.290.0050.03812.84
5.3.280.0060.04112.80
5.3.270.0030.04212.81
5.3.260.0030.04212.82
5.3.250.0060.01912.84
5.3.240.0050.02012.92
5.3.230.0070.03912.81
5.3.220.0020.02712.78
5.3.210.0070.02712.79
5.3.200.0060.03712.90
5.3.190.0010.02312.90
5.3.180.0030.02212.82
5.3.170.0030.02312.79
5.3.160.0000.02312.78
5.3.150.0030.01812.79
5.3.140.0000.02312.77
5.3.130.0060.01812.83
5.3.120.0030.02512.78
5.3.110.0030.02212.76
5.3.100.0060.02012.53
5.3.90.0030.02012.58
5.3.80.0050.02012.58
5.3.70.0030.02012.49
5.3.60.0030.01912.51
5.3.50.0050.02112.51
5.3.40.0040.02012.48
5.3.30.0030.02112.46
5.3.20.0040.01912.39
5.3.10.0020.02412.33
5.3.00.0030.02012.25
5.2.170.0010.01811.48
5.2.160.0040.02611.48
5.2.150.0000.02611.48
5.2.140.0030.02011.48
5.2.130.0070.01711.48
5.2.120.0030.01711.48
5.2.110.0030.01611.48
5.2.100.0060.01311.48
5.2.90.0030.01811.48
5.2.80.0070.01511.48
5.2.70.0030.01611.48
5.2.60.0010.01811.48
5.2.50.0040.01511.48
5.2.40.0020.01511.48
5.2.30.0020.02011.48
5.2.20.0050.01311.48
5.2.10.0020.01611.48
5.2.00.0020.01711.48
5.1.60.0000.01711.48
5.1.50.0000.01611.48
5.1.40.0040.01211.48
5.1.30.0030.01511.48
5.1.20.0030.01311.48
5.1.10.0000.01611.48
5.1.00.0030.01311.48
5.0.50.0030.01011.48
5.0.40.0050.01011.48
5.0.30.0020.01811.48
5.0.20.0030.01011.48
5.0.10.0000.01311.48
5.0.00.0000.01811.48
4.4.90.0020.01011.48
4.4.80.0030.00811.48
4.4.70.0030.01011.48
4.4.60.0020.00711.48
4.4.50.0030.00811.48
4.4.40.0000.01511.48
4.4.30.0050.00711.48
4.4.20.0020.00811.48
4.4.10.0000.01011.48
4.4.00.0020.01511.48
4.3.110.0010.00811.48
4.3.100.0000.01011.48
4.3.90.0000.01011.48
4.3.80.0000.01511.48
4.3.70.0020.01011.48
4.3.60.0020.00911.48
4.3.50.0000.00911.48
4.3.40.0000.01211.48
4.3.30.0020.00911.48
4.3.20.0000.01211.48
4.3.10.0020.00811.48
4.3.00.0000.00911.48

preferences:
50.27 ms | 401 KiB | 5 Q