3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create an array and push on the names // of your closest family and friends $name = array(); array_push($name,"Mike"); array_push($name,"Jane"); array_push($name,"Jack"); array_push($name,"Nike"); array_push($name,"Ash"); array_push($name,"Chris"); array_push($name,"Zark"); // Sort the list sort($name); join(",",$name); // Randomly select a winner! $random = count($name,rand(0,7)); // Print the winner's name in ALL CAPS $winner = strtoupper($random); print($winner); ?>

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.0030.00617.20
7.1.60.0140.01019.40
7.1.50.0090.01517.00
7.1.00.0070.07022.35
7.0.200.0060.00316.86
7.0.140.0000.07721.97
7.0.60.0000.08720.07
7.0.50.0100.03717.68
7.0.40.0100.03720.40
7.0.30.0130.06020.09
7.0.20.0230.08020.00
7.0.10.0070.06320.16
7.0.00.0130.08019.96
5.6.280.0100.06720.78
5.6.210.0070.09020.60
5.6.200.0030.05718.18
5.6.190.0100.05320.63
5.6.180.3200.04020.49
5.6.170.0200.04320.34
5.6.160.0130.07720.61
5.6.150.0000.06018.11
5.6.140.0100.08018.18
5.6.130.0070.07718.11
5.6.120.0130.07720.99
5.6.110.0030.04020.98
5.6.100.0100.08020.98
5.6.90.0070.06021.18
5.6.80.0130.07720.40
5.6.70.0330.03020.36
5.5.350.0170.08320.42
5.5.340.0070.07017.92
5.5.330.0000.07020.42
5.5.320.0300.04020.13
5.5.310.0330.08020.50
5.5.300.0030.08718.01
5.5.290.0100.03717.88
5.5.280.0100.07720.79
5.5.270.0070.08720.86
5.5.260.0030.06020.76
5.5.250.0130.07720.68
5.5.240.0200.07320.27
5.4.450.0100.03719.49
5.4.440.0270.04019.51
5.4.430.0470.04319.23
5.4.420.0230.04319.42
5.4.410.0230.03019.28
5.4.400.0330.03719.22
5.4.390.0430.05019.13
5.4.380.1170.06318.67
5.4.370.1270.07018.49
5.4.360.1300.06718.75
5.4.350.1100.05718.72
5.4.340.1230.04018.74
5.4.320.0040.04112.45
5.4.310.0050.04612.45
5.4.300.0060.03712.46
5.4.290.0080.03912.45
5.4.280.0110.04112.35
5.4.270.0080.03412.35
5.4.260.0040.03912.35
5.4.250.0080.03512.35
5.4.240.0050.03712.35
5.4.230.0080.03512.34
5.4.220.0080.03412.34
5.4.210.0070.03412.34
5.4.200.0040.03912.34
5.4.190.0040.03712.34
5.4.180.0060.03512.34
5.4.170.0060.03412.35
5.4.160.0070.03912.35
5.4.150.0060.04312.34
5.4.140.0060.03812.02
5.4.130.0020.03912.02
5.4.120.0060.03511.97
5.4.110.0050.03911.97
5.4.100.0010.04011.97
5.4.90.0060.03711.97
5.4.80.0070.03711.97
5.4.70.0050.03711.96
5.4.60.0050.03511.96
5.4.50.0070.03511.96
5.4.40.0080.03311.95
5.4.30.0100.03511.95
5.4.20.0060.03511.95
5.4.10.0050.03511.95
5.4.00.0080.03311.44
5.3.290.0080.04812.80
5.3.280.0060.03812.71
5.3.270.0060.03912.72
5.3.260.0110.03412.72
5.3.250.0100.03412.71
5.3.240.0080.03712.72
5.3.230.0080.03712.71
5.3.220.0080.03612.68
5.3.210.0040.04112.68
5.3.200.0080.03312.68
5.3.190.0030.04012.67
5.3.180.0030.03912.67
5.3.170.0030.03912.67
5.3.160.0060.03612.68
5.3.150.0070.03912.67
5.3.140.0020.04812.66
5.3.130.0070.03712.66
5.3.120.0060.03912.65
5.3.110.0060.03812.66
5.3.100.0050.03812.12
5.3.90.0040.03812.09
5.3.80.0120.04212.07
5.3.70.0070.03512.07
5.3.60.0070.03612.06
5.3.50.0060.03712.00
5.3.40.0050.03812.00
5.3.30.0050.03811.95
5.3.20.0080.03311.72
5.3.10.0070.03911.70
5.3.00.0040.03811.68
5.2.170.0040.0359.18
5.2.160.0090.0259.18
5.2.150.0020.0339.18
5.2.140.0040.0319.18
5.2.130.0080.0259.14
5.2.120.0050.0289.14
5.2.110.0030.0309.15
5.2.100.0040.0319.15
5.2.90.0080.0299.14
5.2.80.0050.0309.14
5.2.70.0080.0279.14
5.2.60.0050.0299.09
5.2.50.0040.0319.06
5.2.40.0050.0289.04
5.2.30.0050.0299.01
5.2.20.0050.0279.00
5.2.10.0040.0288.93
5.2.00.0050.0298.80
5.1.60.0030.0268.08
5.1.50.0050.0248.07
5.1.40.0040.0258.05
5.1.30.0050.0268.41
5.1.20.0040.0278.43
5.1.10.0070.0238.15
5.1.00.0020.0288.15
5.0.50.0040.0206.63
5.0.40.0010.0226.49
5.0.30.0060.0306.30
5.0.20.0050.0176.27
5.0.10.0040.0196.25
5.0.00.0030.0306.25
4.4.90.0010.0174.78
4.4.80.0040.0134.75
4.4.70.0020.0164.75
4.4.60.0000.0184.76
4.4.50.0050.0134.77
4.4.40.0020.0264.71
4.4.30.0010.0164.76
4.4.20.0040.0134.85
4.4.10.0030.0154.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0040.0144.67
4.3.90.0050.0154.63
4.3.80.0020.0274.58
4.3.70.0050.0124.63
4.3.60.0070.0104.63
4.3.50.0040.0154.63
4.3.40.0020.0244.54
4.3.30.0010.0163.30
4.3.20.0020.0163.29
4.3.10.0000.0173.24
4.3.00.0130.01315.94

preferences:
34.99 ms | 401 KiB | 5 Q