3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1,2,3,4,2,2,4,2,42,3,25,5,25,5,35,23,5,2,35,5,4,4,54,45,45,4,5,74,3,54,6,3,5,7,8,4,3,6,67,34,67]; $t = microtime(); rsort($arr); if ($arr[2] > 50) {echo 'true';} echo microtime() -$t;

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)
7.2.00.0100.00319.53
7.1.70.0040.00416.97
7.1.60.0110.01419.46
7.1.50.0160.00616.99
7.1.00.0030.07722.43
7.0.200.0040.00416.72
7.0.140.0030.07321.97
7.0.60.0000.09319.86
7.0.50.0070.08317.79
7.0.40.0000.05019.90
7.0.30.0430.05020.28
7.0.20.0230.04720.20
7.0.10.0100.04720.00
7.0.00.0000.04320.20
5.6.280.0100.06721.07
5.6.210.0100.07720.62
5.6.200.0070.06718.08
5.6.190.0030.08720.57
5.6.180.0330.07320.33
5.6.170.0270.04720.49
5.6.160.0000.07720.46
5.6.150.0170.04318.11
5.6.140.0030.05318.15
5.6.130.0200.04318.16
5.6.120.0170.08321.09
5.6.110.0200.07320.97
5.6.100.0070.03720.95
5.6.90.0030.05321.02
5.6.80.0130.08020.40
5.6.70.4130.02720.52
5.5.350.0130.06720.41
5.5.340.0070.06317.91
5.5.330.0200.02720.20
5.5.320.0330.04020.29
5.5.310.0300.07020.17
5.5.300.0100.07718.00
5.5.290.0000.05718.02
5.5.280.0030.07720.96
5.5.270.0100.05320.96
5.5.260.0130.08020.89
5.5.250.0030.04720.61
5.5.240.0230.07720.36
5.4.450.0400.04019.41
5.4.440.0370.04019.41
5.4.430.0430.03719.13
5.4.420.0330.03319.42
5.4.410.0330.04019.00
5.4.400.0300.03719.06
5.4.390.0230.05018.93
5.4.380.0470.04718.63
5.4.370.0170.06018.45
5.4.360.0270.06318.45
5.4.350.0400.07318.71
5.4.340.0630.07018.61
5.4.320.0090.03312.46
5.4.310.0080.03612.46
5.4.300.0070.03412.46
5.4.290.0090.03512.45
5.4.280.0040.03712.35
5.4.270.0050.03712.36
5.4.260.0070.03612.36
5.4.250.0060.03912.36
5.4.240.0040.03812.36
5.4.230.0040.04012.34
5.4.220.0060.03912.34
5.4.210.0030.03812.35
5.4.200.0060.03912.35
5.4.190.0050.03912.34
5.4.180.0080.03312.34
5.4.170.0040.03812.36
5.4.160.0040.03712.35
5.4.150.0040.03712.34
5.4.140.0050.03812.03
5.4.130.0050.03612.02
5.4.120.0090.03211.97
5.4.110.0050.04011.97
5.4.100.0070.03611.97
5.4.90.0070.04711.97
5.4.80.0070.03611.97
5.4.70.0080.03311.97
5.4.60.0050.03711.97
5.4.50.0030.03711.97
5.4.40.0050.03511.95
5.4.30.0050.03611.95
5.4.20.0060.03511.96
5.4.10.0060.03411.96
5.4.00.0070.03611.45
5.3.290.0090.03712.80
5.3.280.0080.03612.71
5.3.270.0060.03912.72
5.3.260.0070.03712.72
5.3.250.0070.03512.72
5.3.240.0070.03512.72
5.3.230.0060.03712.70
5.3.220.0070.03612.68
5.3.210.0070.03712.68
5.3.200.0040.04112.68
5.3.190.0070.03912.68
5.3.180.0040.03812.67
5.3.170.0030.03912.67
5.3.160.0060.03612.68
5.3.150.0040.03912.68
5.3.140.0070.03512.66
5.3.130.0140.03012.66
5.3.120.0060.03812.66
5.3.110.0080.03612.66
5.3.100.0030.03912.12
5.3.90.0070.03512.08
5.3.80.0110.03012.07
5.3.70.0080.04012.08
5.3.60.0050.03712.06
5.3.50.0050.03712.00
5.3.40.0050.03712.00
5.3.30.0060.03511.95
5.3.20.0080.03311.72
5.3.10.0040.03611.70
5.3.00.0130.03011.68
5.2.170.0070.0349.18
5.2.160.0060.0309.18
5.2.150.0070.0309.18
5.2.140.0090.0329.18
5.2.130.0050.0309.14
5.2.120.0080.0259.14
5.2.110.0060.0279.15
5.2.100.0120.0219.14
5.2.90.0020.0329.14
5.2.80.0020.0379.13
5.2.70.0030.0329.14
5.2.60.0030.0319.09
5.2.50.0010.0329.05
5.2.40.0050.0279.04
5.2.30.0040.0309.01
5.2.20.0030.0299.01
5.2.10.0060.0268.93
5.2.00.0010.0328.78
5.1.60.0030.0258.06
5.1.50.0040.0258.06
5.1.40.0050.0238.05
5.1.30.0080.0218.40
5.1.20.0030.0328.42
5.1.10.0040.0268.14
5.1.00.0030.0268.14
5.0.50.0050.0196.62
5.0.40.0060.0176.48
5.0.30.0030.0316.29
5.0.20.0020.0206.27
5.0.10.0020.0216.24
5.0.00.0040.0306.23
4.4.90.0030.0164.78
4.4.80.0020.0154.75
4.4.70.0020.0194.75
4.4.60.0010.0184.75
4.4.50.0020.0174.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0204.85
4.4.00.0020.0284.76
4.3.110.0010.0194.66
4.3.100.0050.0184.66
4.3.90.0010.0184.63
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0060.0134.63
4.3.50.0020.0194.63
4.3.40.0020.0244.54
4.3.30.0000.0183.28
4.3.20.0010.0163.26
4.3.10.0020.0153.22
4.3.00.0070.02018.55

preferences:
36.7 ms | 400 KiB | 5 Q