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[]" value="<?= $res->menu_id ?>"></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.0140.00516.75
8.3.60.0070.01118.30
8.3.50.0070.00716.48
8.3.40.0140.00418.80
8.3.30.0070.00718.66
8.3.20.0030.00519.15
8.3.10.0070.00021.84
8.3.00.0070.00023.66
8.2.190.0120.00316.75
8.2.180.0100.01016.63
8.2.170.0090.00622.96
8.2.160.0030.01019.14
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.83
8.2.110.0000.01021.00
8.2.100.0040.00717.89
8.2.90.0000.00817.91
8.2.80.0050.00317.97
8.2.70.0030.00617.93
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0040.00419.34
8.2.30.0040.00419.39
8.2.20.0040.00417.93
8.2.10.0030.00319.49
8.2.00.0000.00719.48
8.1.280.0150.00325.92
8.1.270.0040.00422.02
8.1.260.0050.00326.35
8.1.250.0000.01428.09
8.1.240.0070.00323.92
8.1.230.0060.00620.88
8.1.220.0080.00017.79
8.1.210.0080.00019.03
8.1.200.0040.00417.23
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0040.00418.79
8.1.160.0070.00018.95
8.1.150.0070.00018.80
8.1.140.0050.00217.82
8.1.130.0050.00319.01
8.1.120.0000.00717.51
8.1.110.0040.00717.34
8.1.100.0000.00817.38
8.1.90.0000.00717.50
8.1.80.0030.00317.49
8.1.70.0030.00317.47
8.1.60.0000.00917.54
8.1.50.0040.00417.50
8.1.40.0070.00317.40
8.1.30.0090.00017.70
8.1.20.0080.00017.52
8.1.10.0070.00017.50
8.1.00.0030.00617.43
8.0.300.0040.00419.64
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0000.00717.13
8.0.260.0070.00017.25
8.0.250.0000.00717.04
8.0.240.0100.00016.84
8.0.230.0030.00617.05
8.0.220.0000.00716.95
8.0.210.0050.00316.96
8.0.200.0030.00316.91
8.0.190.0040.00416.89
8.0.180.0050.00316.99
8.0.170.0000.01016.89
8.0.160.0030.00617.04
8.0.150.0070.00316.91
8.0.140.0040.00416.94
8.0.130.0030.00313.32
8.0.120.0040.00416.88
8.0.110.0030.00316.98
8.0.100.0040.00417.07
8.0.90.0000.00716.83
8.0.80.0100.00916.92
8.0.70.0030.00417.02
8.0.60.0040.00417.06
8.0.50.0030.00517.01
8.0.30.0140.00617.13
8.0.20.0130.00617.40
8.0.10.0030.00317.08
8.0.00.0090.00916.85
7.4.330.0040.00015.55
7.4.320.0000.00616.50
7.4.300.0030.00716.42
7.4.290.0000.00716.59
7.4.280.0030.00516.55
7.4.270.0030.00316.52
7.4.260.0050.00216.61
7.4.250.0050.00316.55
7.4.240.0050.00316.50
7.4.230.0000.00716.67
7.4.220.0020.00516.42
7.4.210.0050.01316.51
7.4.200.0030.00316.30
7.4.160.0080.00816.43
7.4.140.0110.00917.86
7.4.130.0130.00616.36
7.4.120.0080.01216.53
7.4.110.0080.00816.53
7.4.100.0060.01116.38
7.4.90.0090.00916.48
7.4.80.0170.00319.39
7.4.70.0090.00916.67
7.4.60.0100.00616.29
7.4.50.0140.00016.52
7.4.40.0090.00916.63
7.4.00.0060.00914.57
7.3.330.0050.00013.24
7.3.320.0000.00613.24
7.3.310.0050.00316.40
7.3.300.0000.00716.30
7.3.290.0000.00716.18
7.3.280.0110.00416.43
7.3.260.0100.00816.47
7.3.240.0080.01316.37
7.3.230.0100.00716.36
7.3.210.0060.01116.58
7.3.200.0120.00616.47
7.3.190.0080.00916.47
7.3.180.0090.00616.36
7.3.170.0000.01816.51
7.3.160.0100.01016.46
7.2.330.0110.00816.77
7.2.320.0130.00616.62
7.2.310.0090.00916.66
7.2.300.0060.01116.63
7.2.290.0140.01116.75
7.2.80.0070.00716.71
7.2.70.0060.00916.70
7.2.60.0000.01616.86
7.2.50.0070.00716.82
7.2.40.0030.01216.48
7.2.30.0090.00617.00
7.2.20.0090.00516.97
7.2.10.0110.00416.77
7.2.00.0090.00617.07
7.1.200.0000.01215.80
7.1.190.0090.00615.54
7.1.180.0060.00715.44
7.1.170.0100.00415.56
7.1.160.0090.00415.77
7.1.150.0090.00515.88
7.1.140.0060.00915.81
7.1.130.0080.00815.48
7.1.120.0030.00915.58
7.1.110.0120.00015.81
7.1.100.0110.00315.79
7.1.90.0090.00915.80
7.1.80.0120.00615.78
7.1.70.0090.00915.76
7.1.60.0370.01133.86
7.1.50.0210.01833.62
7.1.40.0240.01533.55
7.1.30.0220.00933.66
7.1.20.0230.00833.44
7.1.10.0100.00415.41
7.1.00.0060.00815.92

preferences:
65.56 ms | 401 KiB | 5 Q