3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movies = ['welcome to the punch', 'iron man 2', 'the way way back', 'ghost world', 'the killer inside me']; echo array_rand($movies);

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.1.70.0040.00417.25
7.1.60.0070.01719.70
7.1.50.0100.01016.82
7.1.00.0000.08022.35
7.0.200.0060.00316.79
7.0.140.0070.07021.95
7.0.60.0370.06320.05
7.0.50.0170.04017.80
7.0.40.0070.07020.40
7.0.30.0470.07720.04
7.0.20.0270.06720.27
7.0.10.0270.05020.12
7.0.00.0130.08320.20
5.6.280.0000.07721.06
5.6.210.0100.08320.66
5.6.200.0000.06018.16
5.6.190.0000.06020.35
5.6.180.0230.04720.54
5.6.170.0430.07020.51
5.6.160.0100.05318.14
5.6.150.0130.07318.21
5.6.140.0000.04318.11
5.6.130.0100.07718.18
5.6.120.0030.08321.01
5.6.110.0130.07721.02
5.6.100.0130.07321.00
5.6.90.0100.07021.07
5.6.80.0070.08020.53
5.5.350.0230.06320.52
5.5.340.0000.04318.02
5.5.330.0100.04020.23
5.5.320.0170.08720.19
5.5.310.0470.07320.18
5.5.300.0170.04317.87
5.5.290.0130.05317.95
5.5.280.0070.06720.79
5.5.270.0070.04720.78
5.5.260.0030.08320.79
5.5.250.0030.08320.57
5.5.240.0130.07020.18
5.4.450.0770.05719.64
5.4.440.0700.06019.47
5.4.430.0130.05319.52
5.4.420.0700.00019.16
5.4.410.0100.05718.72
5.4.400.0330.06018.68
5.4.390.0170.07318.53
5.4.380.0370.05018.78
5.4.370.0130.04718.69
5.4.360.0130.04718.57
5.4.350.0030.03611.97
5.4.340.0070.03711.97
5.4.320.0090.03512.45
5.4.310.0060.04912.45
5.4.300.0100.04112.45
5.4.290.0070.04212.45
5.4.280.0060.03712.34
5.4.270.0060.03512.35
5.4.260.0050.03812.34
5.4.250.0120.03912.34
5.4.240.0100.03612.35
5.4.230.0060.03812.34
5.4.220.0060.03512.34
5.4.210.0040.04312.34
5.4.200.0060.03612.34
5.4.190.0080.03312.33
5.4.180.0090.03812.33
5.4.170.0070.03712.34
5.4.160.0080.03412.34
5.4.150.0040.03812.34
5.4.140.0050.03612.02
5.4.130.0090.03912.01
5.4.120.0090.03811.97
5.4.110.0050.03711.96
5.4.100.0090.03011.96
5.4.90.0090.03311.96
5.4.80.0070.03511.96
5.4.70.0070.03311.96
5.4.60.0050.03511.96
5.4.50.0050.03611.96
5.4.40.0110.03011.95
5.4.30.0110.03011.95
5.4.20.0100.03911.95
5.4.10.0060.03511.95
5.4.00.0060.03611.44
5.3.290.0050.04012.80
5.3.280.0070.03612.71
5.3.270.0060.03812.72
5.3.260.0070.03712.72
5.3.250.0070.04212.72
5.3.240.0070.03912.72
5.3.230.0050.04112.71
5.3.220.0080.04312.68
5.3.210.0070.03712.68
5.3.200.0070.04112.68
5.3.190.0070.03712.68
5.3.180.0080.04112.67
5.3.170.0050.03712.67
5.3.160.0030.03912.67
5.3.150.0050.03812.68
5.3.140.0070.03512.66
5.3.130.0060.03812.66
5.3.120.0090.03712.66
5.3.110.0050.03912.66
5.3.100.0060.03712.12
5.3.90.0060.04212.09
5.3.80.0060.03712.08
5.3.70.0070.03612.07
5.3.60.0050.03712.06
5.3.50.0100.03612.00
5.3.40.0050.03712.00
5.3.30.0040.03611.95
5.3.20.0080.03311.73
5.3.10.0100.03011.70
5.3.00.0060.03411.68
5.2.170.0040.0319.18
5.2.160.0010.0329.18
5.2.150.0070.0349.18
5.2.140.0050.0299.18
5.2.130.0020.0369.14
5.2.120.0020.0319.14
5.2.110.0060.0279.15
5.2.100.0040.0299.14
5.2.90.0050.0289.14
5.2.80.0020.0339.14
5.2.70.0040.0319.14
5.2.60.0030.0379.09
5.2.50.0050.0299.06
5.2.40.0050.0289.03
5.2.30.0050.0319.01
5.2.20.0070.0269.00
5.2.10.0040.0358.93
5.2.00.0040.0298.78
5.1.60.0030.0248.07
5.1.50.0030.0278.06
5.1.40.0040.0248.04
5.1.30.0100.0268.39
5.1.20.0060.0298.41
5.1.10.0030.0278.14
5.1.00.0040.0268.14
5.0.50.0000.0246.63
5.0.40.0020.0216.48
5.0.30.0040.0306.29
5.0.20.0040.0186.27
5.0.10.0020.0216.23
5.0.00.0040.0306.23
4.4.90.0030.0154.78
4.4.80.0030.0224.75
4.4.70.0020.0214.76
4.4.60.0020.0204.76
4.4.50.0030.0184.77
4.4.40.0030.0234.71
4.4.30.0060.0184.76
4.4.20.0020.0154.85
4.4.10.0030.0234.85
4.4.00.0040.0294.76
4.3.110.0020.0164.67
4.3.100.0040.0214.66
4.3.90.0070.0164.63
4.3.80.0030.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0144.63
4.3.50.0030.0164.63
4.3.40.0020.0244.54
4.3.30.0020.0233.29
4.3.20.0020.0163.26
4.3.10.0010.0173.22
4.3.00.0030.0207.71

preferences:
34.77 ms | 401 KiB | 5 Q