3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [ (object)['menu_id' => 1, 'menu_name' => 'one'], (object)['menu_id' => 2, 'menu_name' => 'two'], (object)['menu_id' => 3, 'menu_name' => 'three'], ]; ?> <form action=""> <table> <thead> <tr> <th>Menu Id</th> <th>Menu Name</th> <th>Yes/No</th> </tr> </thead> <tbody> <?php foreach($result as $res) { ?> <tr> <td><?= $res->menu_id ?></td> <td><?= $res->menu_name ?></td> <td><input type="checkbox" name="yes[<?= $res->menu_id ?>]" value="1"></td> </tr> <?php } ?> </tbody> </table>

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.70.0080.01216.75
8.3.60.0140.00718.56
8.3.50.0070.00716.48
8.3.40.0120.00318.84
8.3.30.0130.00318.63
8.3.20.0040.00418.96
8.3.10.0050.00321.47
8.3.00.0050.00323.66
8.2.190.0070.00716.58
8.2.180.0180.00416.50
8.2.170.0110.00422.96
8.2.160.0140.00719.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00720.39
8.2.120.0040.00426.35
8.2.110.0060.00620.97
8.2.100.0000.01317.72
8.2.90.0000.00817.96
8.2.80.0000.00817.97
8.2.70.0000.00917.92
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0050.00320.91
8.2.30.0000.00719.19
8.2.20.0000.00718.07
8.2.10.0040.00419.41
8.2.00.0000.00719.30
8.1.280.0070.01325.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00722.54
8.1.230.0110.00020.96
8.1.220.0000.00817.74
8.1.210.0050.00318.95
8.1.200.0000.00817.35
8.1.190.0030.00617.23
8.1.180.0070.00018.10
8.1.170.0050.00318.95
8.1.160.0040.00418.89
8.1.150.0050.00318.93
8.1.140.0040.00417.73
8.1.130.0000.00819.07
8.1.120.0040.00417.36
8.1.110.0070.00317.49
8.1.100.0000.00817.51
8.1.90.0020.00517.35
8.1.80.0000.00717.40
8.1.70.0070.00017.48
8.1.60.0040.00417.49
8.1.50.0030.00517.39
8.1.40.0050.00517.45
8.1.30.0060.00317.54
8.1.20.0050.00217.69
8.1.10.0030.00517.50
8.1.00.0090.00017.47
8.0.300.0040.00419.85
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0080.00017.27
8.0.260.0000.00617.20
8.0.250.0000.00917.08
8.0.240.0040.00417.01
8.0.230.0000.00916.96
8.0.220.0000.00716.92
8.0.210.0000.00717.00
8.0.200.0070.00017.08
8.0.190.0060.00317.02
8.0.180.0030.00516.87
8.0.170.0000.00916.99
8.0.160.0000.01116.91
8.0.150.0000.00716.79
8.0.140.0040.00416.80
8.0.130.0030.00313.26
8.0.120.0080.00017.00
8.0.110.0070.00016.91
8.0.100.0040.00416.96
8.0.90.0030.00517.02
8.0.80.0050.01516.96
8.0.70.0030.00516.75
8.0.60.0040.00416.86
8.0.50.0000.00716.82
8.0.30.0100.00817.20
8.0.20.0110.00717.40
8.0.10.0000.00817.19
8.0.00.0080.00916.84
7.4.330.0000.00415.55
7.4.320.0030.00316.61
7.4.300.0060.00316.43
7.4.290.0030.00316.49
7.4.280.0040.00416.40
7.4.270.0070.00016.63
7.4.260.0000.00716.51
7.4.250.0070.00016.49
7.4.240.0070.00016.61
7.4.230.0000.00716.68
7.4.220.0030.00516.64
7.4.210.0070.00716.60
7.4.200.0030.00316.32
7.4.160.0040.01116.53
7.4.140.0090.01117.86
7.4.130.0180.00716.46
7.4.120.0110.00916.48
7.4.110.0160.00016.47
7.4.100.0070.01416.49
7.4.90.0080.00816.45
7.4.80.0170.00019.39
7.4.70.0030.01416.43
7.4.60.0130.01716.45
7.4.50.0030.01616.46
7.4.40.0160.00316.41
7.4.00.0100.00614.90
7.3.330.0030.00313.16
7.3.320.0000.00613.07
7.3.310.0000.00816.29
7.3.300.0060.00016.22
7.3.290.0000.00816.23
7.3.280.0100.01016.38
7.3.260.0080.00916.42
7.3.240.0100.00916.35
7.3.230.0100.00716.61
7.3.210.0040.01216.23
7.3.200.0120.00616.45
7.3.190.0120.00316.57
7.3.180.0100.00516.23
7.3.170.0140.00316.56
7.3.160.0150.00316.31
7.3.120.0070.01114.97
7.3.110.0030.01314.73
7.3.100.0070.01014.79
7.3.90.0000.01015.02
7.3.80.0000.01714.97
7.3.70.0150.00014.71
7.3.60.0070.00714.86
7.3.50.0030.01314.93
7.3.40.0030.01014.66
7.3.30.0050.00514.66
7.3.20.0000.01116.43
7.3.10.0090.00416.63
7.3.00.0060.00316.62
7.2.330.0130.00716.50
7.2.320.0100.00716.53
7.2.310.0030.01616.59
7.2.300.0090.01216.64
7.2.290.0090.01216.69
7.2.250.0060.01315.03
7.2.240.0090.00915.24
7.2.230.0060.00615.05
7.2.220.0060.00815.21
7.2.210.0030.01015.09
7.2.200.0040.01115.27
7.2.190.0030.00714.64
7.2.180.0060.00314.96
7.2.170.0090.00615.14
7.2.80.0070.00716.35
7.2.70.0030.01016.38
7.2.60.0030.01016.69
7.2.50.0040.00916.93
7.2.40.0080.00516.50
7.2.30.0090.00916.84
7.2.20.0060.01216.94
7.2.10.0040.01416.67
7.2.00.0100.00316.86
7.1.330.0070.00715.68
7.1.320.0040.01115.81
7.1.310.0000.01215.71
7.1.300.0000.01515.91
7.1.290.0030.01315.68
7.1.280.0140.00015.83
7.1.270.0030.00915.73
7.1.260.0090.00315.85
7.1.200.0120.00015.87
7.1.190.0060.00615.58
7.1.180.0060.00615.63
7.1.170.0080.00415.53
7.1.160.0090.00615.61
7.1.150.0030.01215.91
7.1.140.0080.00815.78
7.1.130.0000.01315.54
7.1.120.0060.00615.81
7.1.110.0060.00615.82
7.1.100.0100.00315.49
7.1.90.0040.00815.53
7.1.80.0090.00315.75
7.1.70.0060.00615.83
7.1.60.0250.00933.61
7.1.50.0240.00633.59
7.1.40.0260.00333.47
7.1.30.0210.00733.57
7.1.20.0160.01333.54
7.1.10.0040.00815.60
7.1.00.0000.01215.85

preferences:
30.34 ms | 401 KiB | 5 Q