3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Intialize the input $score=rand(50,100); //Determine the Grade $grade=($score>=90)?'A':( ($score>=80)?'B':( ($score>=70)?'C':( ($score>=60)?'D':'F'))); //Output the Results echo "<h1>A score of $score = $grade</h1>";

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.3.10.0060.00916.54
7.3.00.0070.00716.57
7.2.130.0090.00616.49
7.2.120.0060.00916.85
7.2.110.0000.00916.82
7.2.100.0030.00916.91
7.2.90.0030.01416.93
7.2.80.0070.00716.89
7.2.70.0040.00817.00
7.2.60.0000.01716.97
7.2.50.0000.01317.04
7.2.40.0030.01317.04
7.2.30.0060.01017.02
7.2.20.0140.00416.98
7.2.10.0000.01116.99
7.2.00.0090.00418.09
7.1.250.0110.00015.54
7.1.70.0040.00416.98
7.1.60.0120.01219.46
7.1.50.0030.02016.89
7.1.00.0070.07322.48
7.0.200.0030.00616.58
7.0.140.0000.07722.12
7.0.60.0070.06719.91
7.0.50.0000.04317.87
7.0.40.0000.05320.05
7.0.30.0500.07720.13
7.0.20.0170.05720.04
7.0.10.0030.04320.16
7.0.00.0100.03320.14
5.6.280.0070.07021.13
5.6.210.0030.06320.54
5.6.200.0000.06018.11
5.6.190.0100.08320.45
5.6.180.3630.04720.41
5.6.170.0370.08020.45
5.6.160.0030.05320.71
5.6.150.0030.09018.18
5.6.140.0100.06318.18
5.6.130.0030.08318.22
5.6.120.0170.07721.08
5.6.110.0100.06320.97
5.6.100.0130.08021.10
5.6.90.0070.07020.95
5.6.80.0070.08020.28
5.6.70.4500.04320.46
5.5.350.0230.07020.44
5.5.340.0070.08017.95
5.5.330.0070.08320.20
5.5.320.0400.07020.29
5.5.310.0230.06020.30
5.5.300.0000.06317.91
5.5.290.0070.06018.02
5.5.280.0030.07720.87
5.5.270.0130.05020.86
5.5.260.0070.07320.70
5.5.250.0030.04020.68
5.5.240.0230.06020.27
5.4.450.0230.05319.57
5.4.440.0430.04319.38
5.4.430.0170.04319.45
5.4.420.0870.04319.55
5.4.410.0300.04319.33
5.4.400.0430.03018.81
5.4.390.0230.04319.25
5.4.380.0370.05018.52
5.4.370.0370.05018.66
5.4.360.0430.04018.72
5.4.350.0370.06718.78
5.4.340.0500.06318.59
5.4.320.0070.03612.45
5.4.310.0030.04112.45
5.4.300.0080.03912.45
5.4.290.0070.03712.45
5.4.280.0070.03312.35
5.4.270.0050.03612.34
5.4.260.0040.03812.35
5.4.250.0070.03512.34
5.4.240.0040.03612.35
5.4.230.0060.04412.34
5.4.220.0060.03512.34
5.4.210.0060.03412.34
5.4.200.0050.03712.34
5.4.190.0030.03812.33
5.4.180.0060.03512.34
5.4.170.0040.03912.34
5.4.160.0070.03312.34
5.4.150.0060.03512.34
5.4.140.0050.03612.02
5.4.130.0050.03612.01
5.4.120.0090.03111.96
5.4.110.0060.03511.96
5.4.100.0060.03511.96
5.4.90.0050.03611.96
5.4.80.0070.04311.96
5.4.70.0070.03711.96
5.4.60.0080.03411.96
5.4.50.0060.03411.96
5.4.40.0070.03411.95
5.4.30.0060.03411.95
5.4.20.0060.03411.95
5.4.10.0080.03211.95
5.4.00.0080.03611.44
5.3.290.0070.03912.80
5.3.280.0030.03912.71
5.3.270.0090.03412.72
5.3.260.0070.03712.72
5.3.250.0050.03912.72
5.3.240.0080.03412.72
5.3.230.0080.04012.71
5.3.220.0050.03812.68
5.3.210.0030.04812.68
5.3.200.0060.03512.68
5.3.190.0070.04012.68
5.3.180.0040.03712.67
5.3.170.0100.03712.67
5.3.160.0050.03612.67
5.3.150.0050.03612.68
5.3.140.0070.03312.66
5.3.130.0100.03312.66
5.3.120.0030.04012.66
5.3.110.0080.03512.66
5.3.100.0070.03512.12
5.3.90.0020.03912.08
5.3.80.0090.03212.07
5.3.70.0060.04212.07
5.3.60.0020.04112.06
5.3.50.0060.03912.00
5.3.40.0060.03912.00
5.3.30.0100.03311.95
5.3.20.0070.03311.73
5.3.10.0070.03411.70
5.3.00.0060.04011.68
5.2.170.0060.0329.18
5.2.160.0060.0419.18
5.2.150.0040.0319.18
5.2.140.0030.0329.18
5.2.130.0060.0289.14
5.2.120.0020.0319.14
5.2.110.0080.0259.14
5.2.100.0080.0249.14
5.2.90.0040.0299.14
5.2.80.0060.0289.14
5.2.70.0020.0329.14
5.2.60.0030.0329.09
5.2.50.0060.0289.06
5.2.40.0060.0279.04
5.2.30.0060.0289.01
5.2.20.0070.0269.00
5.2.10.0030.0298.93
5.2.00.0060.0278.79
5.1.60.0050.0238.08
5.1.50.0040.0248.07
5.1.40.0050.0238.06
5.1.30.0030.0268.41
5.1.20.0090.0278.43
5.1.10.0060.0288.16
5.1.00.0020.0278.16
5.0.50.0030.0206.63
5.0.40.0030.0196.49
5.0.30.0040.0306.30
5.0.20.0040.0246.27
5.0.10.0040.0186.25
5.0.00.0030.0376.24
4.4.90.0020.0194.77
4.4.80.0020.0164.76
4.4.70.0040.0144.75
4.4.60.0030.0154.76
4.4.50.0040.0144.77
4.4.40.0030.0244.71
4.4.30.0010.0224.76
4.4.20.0020.0164.85
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0020.0154.63
4.3.80.0040.0294.58
4.3.70.0040.0134.63
4.3.60.0020.0154.62
4.3.50.0040.0154.63
4.3.40.0040.0224.54
4.3.30.0020.0173.29
4.3.20.0030.0223.27
4.3.10.0020.0193.23
4.3.00.0070.01315.68

preferences:
38.34 ms | 401 KiB | 5 Q