3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $result = $conn->query("SELECT content, sub_content FROM objectives"); $result = [ ["content" => "Demonstrate where to find the following documentation:", "sub_content" => "Operating and Safety Strategy"], ["content" => "Explain the different turbine main operating states:", "sub_content" => "0"], ["content" => "Explain the different turbine main operating states:", "sub_content" => "Power Production"], ["content" => "Explain the different turbine main operating states:", "sub_content" => "Idle"], ["content" => "Explain the different turbine main operating states:", "sub_content" => "Stop"], ["content" => "Explain how to recognise the current operating mode on the display of the operating panel", "sub_content" => "0"], ["content" => "Explain the subsystem operating modes:", "sub_content" => "Stop"], ["content" => "Explain the subsystem operating modes:", "sub_content" => "Manual"], ["content" => "Explain the subsystem operating modes:", "sub_content" => "0"], ["content" => "Explain the difference between local and remote point of operation", "sub_content" => "0"], ["content" => "Explain that only one point of operation can be active at a time", "sub_content" => "0"] ]; $categories = array(); foreach ($result as $result) { $category = $result['content']; $categories[$category][] = $result['sub_content']; } echo "<ul>\n"; foreach ($categories as $category => $subcategories): echo "\t<li>"; echo $category; echo "\n\t\t<ul>\n"; foreach ($subcategories as $subcategory): if ($subcategory !== '0') { echo "\t\t\t<li>$subcategory</li>\n"; } endforeach; echo "\t\t</ul>\n"; echo "\t</li>\n"; endforeach; echo "</ul>";

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.5.10.0140.00516.77
8.5.00.0160.00620.18
8.4.150.0030.00014.05
8.4.140.0110.00917.61
8.4.130.0130.00718.74
8.4.120.0130.00624.00
8.4.110.0110.00818.68
8.4.100.0100.01018.73
8.4.90.0100.01020.64
8.4.80.0070.00119.04
8.4.70.0070.00117.97
8.4.60.0100.00818.89
8.4.50.0080.01218.60
8.4.40.0140.00717.68
8.4.30.0030.00619.64
8.4.20.0100.01019.36
8.4.10.0160.00019.28
8.3.280.0110.01018.36
8.3.270.0100.01016.79
8.3.260.0070.00416.61
8.3.250.0120.00618.86
8.3.240.0100.01017.28
8.3.230.0120.00816.64
8.3.220.0130.00518.84
8.3.210.0110.00816.65
8.3.200.0060.00316.85
8.3.190.0110.00819.04
8.3.180.0120.00717.30
8.3.170.0070.01118.97
8.3.160.0090.00916.71
8.3.150.0060.01218.75
8.3.140.0040.00416.84
8.3.130.0100.01018.38
8.3.120.0030.00620.80
8.3.110.0080.00020.94
8.3.100.0110.00424.06
8.3.90.0060.00326.77
8.3.80.0040.00417.97
8.3.70.0120.00616.50
8.3.60.0070.01018.43
8.3.50.0070.01116.55
8.3.40.0060.01219.00
8.3.30.0150.00018.71
8.3.20.0080.00021.82
8.3.10.0080.00023.71
8.3.00.0040.00423.48
8.2.290.0100.00920.55
8.2.280.0120.00818.50
8.2.270.0110.00718.73
8.2.260.0060.01316.74
8.2.250.0000.00816.84
8.2.240.0030.00617.40
8.2.230.0090.00022.58
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0080.00018.16
8.2.190.0160.00616.58
8.2.180.0150.00318.45
8.2.170.0110.00422.96
8.2.160.0110.00420.10
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.16
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0040.00717.91
8.2.90.0050.00318.03
8.2.80.0080.00019.07
8.2.70.0040.00417.63
8.2.60.0060.00317.63
8.2.50.0050.00317.93
8.2.40.0000.00818.05
8.2.30.0000.00720.61
8.2.20.0110.00318.09
8.2.10.0080.00018.22
8.2.00.0000.00718.21
8.1.330.0120.00622.04
8.1.320.0100.00818.15
8.1.310.0120.00616.87
8.1.300.0040.00418.34
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0040.00421.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.81
8.1.230.0070.00420.91
8.1.220.0030.00617.74
8.1.210.0080.00018.79
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00717.62
8.1.160.0070.00018.85
8.1.150.0000.00820.36
8.1.140.0000.00817.78
8.1.130.0070.00017.53
8.1.120.0000.00817.54
8.1.110.0060.00317.50
8.1.100.0040.00417.45
8.1.90.0040.00417.51
8.1.80.0000.00817.39
8.1.70.0050.00317.50
8.1.60.0060.00317.59
8.1.50.0000.00717.59
8.1.40.0040.00417.46
8.1.30.0080.00017.70
8.1.20.0000.00817.56
8.1.10.0040.00417.66
8.1.00.0060.00317.48
8.0.300.0070.00020.04
8.0.290.0050.00316.88
8.0.280.0040.00418.42
8.0.270.0000.00717.21
8.0.260.0000.00816.77
8.0.250.0030.00316.96
8.0.240.0080.00017.04
8.0.230.0040.00417.00
8.0.220.0070.00016.80
8.0.210.0040.00416.86
8.0.200.0000.00716.99
8.0.190.0040.00716.86
8.0.180.0000.00716.86
8.0.170.0030.00517.03
8.0.160.0070.00016.86
8.0.150.0000.00716.87
8.0.140.0040.00416.73
8.0.130.0030.00313.42
8.0.120.0040.00416.95
8.0.110.0070.00016.99
8.0.100.0040.00416.99
8.0.90.0050.00316.73
8.0.80.0070.01016.93
8.0.70.0040.00416.78
8.0.60.0000.00716.86
8.0.50.0040.00416.76
8.0.30.0140.00617.15
8.0.20.0120.00817.40
8.0.10.0040.00416.93
8.0.00.0070.01116.76
7.4.330.0050.00015.55
7.4.320.0070.00016.64
7.4.300.0000.00616.64
7.4.290.0000.00816.64
7.4.280.0000.00816.51
7.4.270.0000.00716.65
7.4.260.0030.00316.61
7.4.250.0060.00316.61
7.4.240.0070.00016.53
7.4.230.0030.00316.58
7.4.220.0000.00816.74
7.4.210.0040.01116.62
7.4.200.0030.00516.44
7.4.160.0090.00816.68
7.4.140.0110.00717.86
7.4.130.0030.01516.42
7.4.120.0110.00916.55
7.4.110.0090.00916.61
7.4.100.0140.00416.59
7.4.90.0130.00416.60
7.4.80.0100.01319.39
7.4.70.0060.01116.73
7.4.60.0030.01316.34
7.4.50.0070.00716.66
7.4.40.0140.00616.70
7.4.00.0030.01415.22
7.3.330.0070.00013.18
7.3.320.0060.00013.18
7.3.310.0000.00716.36
7.3.300.0000.00716.39
7.3.290.0090.00616.32
7.3.280.0050.01216.34
7.3.260.0140.00716.57
7.3.250.0130.00716.42
7.3.240.0180.00416.51
7.3.230.0150.00916.67
7.3.210.0100.00716.54
7.3.200.0040.01416.56
7.3.190.0030.01216.57
7.3.180.0060.00916.41
7.3.170.0100.01016.64
7.3.160.0070.01016.44
7.2.330.0060.01216.57
7.2.320.0140.00416.68
7.2.310.0080.00816.64
7.2.300.0130.00716.66
7.2.290.0130.00416.57
7.2.60.0040.01216.85
7.2.30.0130.01218.22
7.2.20.0130.01318.11
7.2.10.0120.01317.85
7.2.00.0140.00718.01
7.1.200.0040.00815.49
7.1.150.0110.01116.89
7.1.140.0100.01117.04
7.1.130.0080.01616.94
7.1.120.0160.01216.89
7.1.110.0090.01516.09
7.1.100.0120.01216.07
7.1.90.0080.01216.15
7.1.80.0090.01016.31
7.1.70.0110.00815.25
7.1.60.0310.01533.41
7.1.50.0320.01832.93
7.1.40.0290.01332.57
7.1.30.0310.02132.83
7.1.20.0330.02032.64
7.1.10.0110.01414.70
7.1.00.0070.01615.08

preferences:
36.9 ms | 403 KiB | 5 Q