3v4l.org

run code in 300+ PHP versions simultaneously
sub output() { print "<ul>" $conn = mysql_connect( "mysql.foo.org:412", "kum", "overmoon" ); mysql_select_db( "kum", $conn ); #selects a database $q = " SELECT * FROM main WHERE id > " . $_GET["id"]. ";"; $res = mysql_query( $q, $conn); while( $row = mysql_fetch_assoc($res) ) { print "<li>".$row['description']."</li>"; } print "</ul><br><ul>"; $q = " SELECT * FROM main WHERE id < " . $_GET["id"]. ";"; $res = mysql_query( $q, $conn); while( $row = mysql_fetch_assoc($res) ) { print "<li>".$row['description']."</li>"; } print "</ul>"; } <?php

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.40.0120.00618.64
8.3.30.0110.00419.04
8.3.20.0070.00020.29
8.3.10.0000.01120.36
8.3.00.0080.00019.38
8.2.170.0100.01022.96
8.2.160.0040.01120.38
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.01
8.2.110.0030.00622.07
8.2.100.0030.00717.72
8.2.90.0040.00419.27
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0060.00317.92
8.2.50.0040.00418.07
8.2.40.0080.00318.03
8.2.30.0000.00719.44
8.2.20.0000.00817.55
8.2.10.0040.00417.83
8.2.00.0050.00317.42
8.1.270.0060.00321.97
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.53
8.1.230.0040.00720.91
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0030.00518.47
8.1.160.0070.00021.89
8.1.150.0030.00318.73
8.1.140.0050.00317.32
8.1.130.0030.00317.75
8.1.120.0070.00017.27
8.1.110.0000.00717.19
8.1.100.0000.00817.27
8.1.90.0050.00317.38
8.1.80.0040.00417.34
8.1.70.0000.00717.30
8.1.60.0060.00317.40
8.1.50.0050.00317.40
8.1.40.0060.00317.23
8.1.30.0000.00817.52
8.1.20.0000.00717.50
8.1.10.0040.00417.48
8.1.00.0040.00417.39
8.0.300.0040.00420.09
8.0.290.0060.00316.63
8.0.280.0000.00718.39
8.0.270.0040.00417.19
8.0.260.0000.00617.19
8.0.250.0030.00316.73
8.0.240.0000.00716.81
8.0.230.0000.00716.79
8.0.220.0040.00416.71
8.0.210.0070.00016.65
8.0.200.0000.00716.92
8.0.190.0000.00716.86
8.0.180.0000.00716.85
8.0.170.0040.00416.71
8.0.160.0030.00316.80
8.0.150.0040.00416.71
8.0.140.0000.00716.75
8.0.130.0000.00513.23
8.0.120.0000.00816.61
8.0.110.0050.00316.77
8.0.100.0050.00316.76
8.0.90.0000.00716.63
8.0.80.0120.00316.68
8.0.70.0000.00716.58
8.0.60.0040.00416.82
8.0.50.0040.00416.75
8.0.30.0100.00916.97
8.0.20.0150.00717.40
8.0.10.0040.00416.75
8.0.00.0120.01116.64
7.4.330.0000.00515.00
7.4.320.0060.00016.48
7.4.300.0000.00616.45
7.4.290.0030.00316.26
7.4.280.0000.00716.28
7.4.270.0030.00316.43
7.4.260.0040.00416.45
7.4.250.0000.00716.33
7.4.240.0040.00416.42
7.4.230.0070.00016.26
7.4.220.0060.01216.36
7.4.210.0040.01116.50
7.4.200.0020.00516.38
7.4.160.0220.00916.18
7.4.150.0030.02117.40
7.4.140.0130.00417.86
7.4.130.0060.01116.47
7.4.120.0110.00516.33
7.4.110.0070.01016.41
7.4.100.0090.00916.35
7.4.90.0110.00616.32
7.4.80.0110.01119.39
7.4.70.0070.01016.38
7.4.60.0120.01216.35
7.4.50.0030.00516.24
7.4.40.0030.01316.22
7.4.30.0160.00016.47
7.3.330.0000.00612.98
7.3.320.0020.00213.02
7.3.310.0030.00316.11
7.3.300.0000.00616.16
7.3.290.0090.00916.11
7.3.280.0090.00716.14
7.3.270.0190.00317.40
7.3.260.0060.01116.36
7.3.250.0140.00416.32
7.3.240.0110.00716.46
7.3.230.0060.01116.39
7.3.210.0130.00316.13
7.3.200.0110.00619.39
7.3.190.0060.01016.23
7.3.180.0080.00816.34
7.3.170.0110.00416.27
7.3.160.0040.01116.25
7.2.330.0040.01216.43
7.2.320.0070.01016.36
7.2.310.0140.00716.46
7.2.300.0000.01716.52
7.2.290.0070.01616.56
5.4.320.0130.02912.45
5.4.310.0060.04112.45
5.4.300.0120.03712.45
5.4.290.0070.04012.45
5.4.280.0080.03712.34
5.4.270.0090.03512.35
5.4.260.0090.03512.34
5.4.250.0060.03712.35
5.4.240.0090.04112.35
5.4.230.0080.04012.34
5.4.220.0120.03012.34
5.4.210.0110.03312.34
5.4.200.0100.04712.34
5.4.190.0080.04212.33
5.4.180.0100.04312.33
5.4.170.0060.03712.35
5.4.160.0070.03412.34
5.4.150.0080.03312.34
5.4.140.0090.04012.02
5.4.130.0080.03812.01
5.4.120.0100.04111.97
5.4.110.0050.03511.96
5.4.100.0020.03911.96
5.4.90.0020.04011.96
5.4.80.0090.03311.96
5.4.70.0100.03811.96
5.4.60.0070.04111.96
5.4.50.0030.04211.96
5.4.40.0100.03111.95
5.4.30.0050.03611.95
5.4.20.0110.03211.95
5.4.10.0090.03411.95
5.4.00.0060.03511.43
5.3.290.0090.03812.80
5.3.280.0070.03812.71
5.3.270.0080.04612.72
5.3.260.0050.04212.72
5.3.250.0110.03512.72
5.3.240.0090.03412.72
5.3.230.0050.04012.71
5.3.220.0070.03612.68
5.3.210.0070.03812.68
5.3.200.0070.03612.68
5.3.190.0030.04012.68
5.3.180.0070.03912.67
5.3.170.0060.04012.67
5.3.160.0090.03812.67
5.3.150.0080.03712.68
5.3.140.0060.03712.66
5.3.130.0040.04112.66
5.3.120.0090.03712.66
5.3.110.0070.04412.66
5.3.100.0090.03412.12
5.3.90.0010.04112.09
5.3.80.0100.03512.08
5.3.70.0060.03712.08
5.3.60.0090.03412.06
5.3.50.0130.03112.00
5.3.40.0080.04312.00
5.3.30.0040.03711.94
5.3.20.0060.03411.72
5.3.10.0070.03311.69
5.3.00.0040.03611.68
5.2.170.0050.0309.18
5.2.160.0060.0279.18
5.2.150.0060.0299.18
5.2.140.0020.0329.17
5.2.130.0020.0329.13
5.2.120.0050.0289.13
5.2.110.0060.0289.14
5.2.100.0060.0269.13
5.2.90.0060.0319.13
5.2.80.0030.0339.13
5.2.70.0080.0289.13
5.2.60.0050.0319.09
5.2.50.0050.0309.06
5.2.40.0060.0309.03
5.2.30.0060.0289.00
5.2.20.0060.0278.99
5.2.10.0060.0268.91
5.2.00.0050.0288.78
5.1.60.0020.0298.05
5.1.50.0060.0238.05
5.1.40.0020.0278.04
5.1.30.0040.0268.39
5.1.20.0050.0268.41
5.1.10.0050.0258.13
5.1.00.0070.0248.13
5.0.50.0040.0216.61
5.0.40.0060.0176.48
5.0.30.0030.0376.28
5.0.20.0060.0226.25
5.0.10.0070.0166.24
5.0.00.0060.0366.23
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0040.0144.75
4.4.60.0010.0174.75
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0050.0224.76
4.4.20.0030.0174.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0030.0154.67
4.3.90.0030.0214.63
4.3.80.0070.0194.58
4.3.70.0030.0174.63
4.3.60.0030.0154.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0030.0163.27
4.3.20.0040.0193.25
4.3.10.0040.0183.22
4.3.00.0030.01714.28

preferences:
39.38 ms | 400 KiB | 5 Q