3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fields = array( 'menu_id' => $menu_id[], 'menu_name' => $menu_name[], 'yes' => $yes[] ); $this->db->insert('menu_table',$fields); ?> <form action="<?php base_url('controller/insert'); ?>"> <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><input type="text" name="menu_id[]" value="<?= $res->menu_id ?>"></td> <td><input type="text" name="menu_name[]" value="<?= $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)
7.2.80.0230.01014.20
7.2.70.0320.00314.75
7.2.60.0270.00714.73
7.2.50.0260.00614.66
7.2.40.0400.00614.75
7.2.30.0300.00314.73
7.2.20.0270.00714.71
7.2.10.0250.00914.45
7.2.00.0250.00914.89
7.1.190.0300.00313.73
7.1.180.0340.00013.83
7.1.170.0220.01113.51
7.1.160.0230.01313.72
7.1.150.0250.00613.63
7.1.140.0330.00013.48
7.1.130.0310.00313.66
7.1.120.0260.00613.63
7.1.110.0220.01013.77
7.1.100.0280.00613.73
7.1.90.0460.00013.81
7.1.80.0320.00313.71
7.1.70.0420.00713.86
7.1.60.0570.01031.74
7.1.50.0570.00331.47
7.1.40.0560.00331.74
7.1.30.0530.01031.45
7.1.20.0630.02031.69
7.1.10.0670.00713.33
7.1.00.0400.00013.86

preferences:
126.91 ms | 1398 KiB | 7 Q