3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ' $(document).ready(function(){ $(\'.ingBox:first\').hide(); $(\'#plus\').click(function(){ var newbox = $(\'.ingBox:first\').clone(); $(\'#ings\').append(newbox); if($(\'#add_id\').val() in all_ings){ var item = all_ings[$(\'#add_id\').val()]; newbox.find(\'[name="id_ingredient[]"]\').val(item.id_ingredient); newbox.find(\'[name="name[]"]\').attr(\'readonly\',\'readonly\').val(item.name).change(); newbox.find(\'[name="description[]"]\').attr(\'readonly\',\'readonly\').val(item.description); newbox.find(\'[name="cms_name[]"]\').attr(\'readonly\',\'readonly\').val(item.cms_name); } newbox.show(); $(\'#add_id\').val(\'0\'); }); $(\'.left\').live(\'click\', function(){ var that = $(this).parents(\'.ingBox\'); that.fadeOut(\'slow\', function(){ that.prev().before(that); that.fadeIn(); }); }); $(\'.right\').live(\'click\', function(){ var that = $(this).parents(\'.ingBox\'); that.fadeOut(\'slow\', function(){ that.next().after(that); that.fadeIn(); }); }); $(\'.enable\').live(\'click\', function(){ var that = $(this).parents(\'.ingBox\'); that.find(\'[name="id_ingredient[]"]\').val(0); that.find(\'[name="name[]"]\').removeAttr(\'readonly\'); that.find(\'[name="description[]"]\').removeAttr(\'readonly\'); that.find(\'[name="cms_name[]"]\').removeAttr(\'readonly\'); $(this).parent().hide(); }); $(\'.minus\').live(\'click\', function(){ $(this).parents(\'.ingBox\').remove(); }); $(\'.unfold\').live(\'click\', function(){ if($(this).parents(\'.ingBox\').find(\'.col\').is(":visible")){ $(this).parents(\'.ingBox\').find(\'.col\').slideUp(); } else { $(\'.col\').hide(); $(this).parents(\'.ingBox\').find(\'.col\').slideDown(); } }); $(\'[name="name[]"]\').live(\'change\', function(){ $(this).parents(\'.ingBox\').find(\'.buttons span\').text($(this).val()); }); }); ';

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.60.0140.00716.50
8.3.50.0060.01221.88
8.3.40.0070.00718.64
8.3.30.0150.00018.97
8.3.20.0040.00420.25
8.3.10.0050.00323.46
8.3.00.0040.00420.77
8.2.180.0120.00618.04
8.2.170.0100.00622.96
8.2.160.0130.00720.52
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.76
8.2.110.0050.00522.26
8.2.100.0070.00418.90
8.2.90.0000.00917.63
8.2.80.0030.00519.18
8.2.70.0000.00817.91
8.2.60.0030.00617.80
8.2.50.0030.00518.10
8.2.40.0080.00022.14
8.2.30.0040.00418.03
8.2.20.0000.00817.59
8.2.10.0040.00417.93
8.2.00.0040.00417.51
8.1.280.0070.00725.92
8.1.270.0040.00423.74
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00622.39
8.1.230.0030.00719.15
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.00
8.1.190.0080.00017.38
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0050.00221.93
8.1.150.0050.00318.41
8.1.140.0000.00717.34
8.1.130.0000.00717.81
8.1.120.0000.00817.25
8.1.110.0000.00817.31
8.1.100.0000.00717.23
8.1.90.0040.00417.37
8.1.80.0000.00717.31
8.1.70.0000.00717.25
8.1.60.0060.00317.42
8.1.50.0030.00617.43
8.1.40.0040.00417.35
8.1.30.0040.00417.43
8.1.20.0070.00017.49
8.1.10.0040.00417.29
8.1.00.0030.00717.38
8.0.300.0050.00219.64
8.0.290.0000.01116.63
8.0.280.0030.00318.24
8.0.270.0030.00317.21
8.0.260.0040.00417.18
8.0.250.0000.00716.69
8.0.240.0040.00416.72
8.0.230.0030.00316.80
8.0.220.0040.00416.67
8.0.210.0000.00716.77
8.0.200.0000.00716.77
8.0.190.0040.00416.81
8.0.180.0070.00016.66
8.0.170.0030.00516.69
8.0.160.0040.00416.62
8.0.150.0000.00716.73
8.0.140.0030.00516.58
8.0.130.0050.00013.14
8.0.120.0040.00416.82
8.0.110.0040.00416.78
8.0.100.0040.00416.75
8.0.90.0050.00316.70
8.0.80.0110.00416.77
8.0.70.0040.00416.72
8.0.60.0070.00016.79
8.0.50.0040.00416.56
8.0.30.0100.01016.95
8.0.20.0130.01117.40
8.0.10.0000.00716.65
8.0.00.0070.01216.63
7.4.330.0000.00515.00
7.4.320.0070.00016.47
7.4.300.0040.00416.30
7.4.290.0030.00516.38
7.4.280.0000.00816.45
7.4.270.0090.00016.27
7.4.260.0070.00016.30
7.4.250.0040.00416.37
7.4.240.0020.00516.39
7.4.230.0030.00316.48
7.4.220.0100.01716.48
7.4.210.0030.01116.36
7.4.200.0040.00416.11
7.4.190.0000.00716.54
7.4.160.0070.01016.31
7.4.150.0070.01017.40
7.4.140.0120.00817.86
7.4.130.0090.00916.41
7.4.120.0110.00816.28
7.4.110.0120.00616.29
7.4.100.0060.01616.36
7.4.90.0080.00816.18
7.4.80.0140.00319.39
7.4.70.0130.00316.52
7.4.60.0100.00716.33
7.4.50.0000.00416.34
7.4.40.0070.01416.36
7.4.30.0030.01216.51
7.4.00.0030.01014.70
7.3.330.0000.00512.92
7.3.320.0030.00413.06
7.3.310.0030.00316.21
7.3.300.0040.00416.14
7.3.290.0040.01116.15
7.3.280.0090.00916.13
7.3.270.0090.00917.40
7.3.260.0030.01316.34
7.3.250.0140.00716.33
7.3.240.0140.00616.16
7.3.230.0110.00616.46
7.3.210.0110.00716.46
7.3.200.0070.01019.39
7.3.190.0100.00716.42
7.3.180.0120.00616.34
7.3.170.0100.00616.27
7.3.160.0120.00916.17
7.3.120.0000.01514.74
7.2.330.0170.00316.35
7.2.320.0090.00916.57
7.2.310.0060.01216.34
7.2.300.0150.00316.34
7.2.290.0120.00616.53
7.2.00.0030.00919.26
7.1.100.0050.00818.16
7.1.70.0060.00316.85
7.1.60.0190.00619.46
7.1.50.0200.00316.94
7.1.00.0100.07022.34
7.0.200.0040.00716.75
7.0.140.0030.07321.99
7.0.60.0100.08320.02
7.0.50.0030.08317.90
7.0.40.0070.06320.20
7.0.30.0400.05020.09
7.0.20.0330.08320.16
7.0.10.0300.05320.00
7.0.00.0170.04020.19
5.6.280.0030.07320.77
5.6.210.0070.07020.46
5.6.200.0030.04018.21
5.6.190.0100.08320.43
5.6.180.3770.05320.56
5.6.170.0430.06720.62
5.6.160.0070.04320.71
5.6.150.0100.03318.20
5.6.140.0070.08018.21
5.6.130.0130.07718.09
5.6.120.0030.05321.01
5.6.110.0200.04721.10
5.6.100.0030.08721.03
5.6.90.0030.04320.97
5.6.80.0030.04020.52
5.6.70.0170.03720.48
5.5.350.0200.05020.36
5.5.340.0130.07317.98
5.5.330.0100.07720.38
5.5.320.0230.03720.23
5.5.310.0230.07020.30
5.5.300.0100.08017.90
5.5.290.0100.07717.91
5.5.280.0100.06020.68
5.5.270.0070.08320.75
5.5.260.0030.06320.94
5.5.250.0100.07320.70
5.5.240.0130.07720.04
5.4.450.0000.08319.59
5.4.440.0030.04719.57
5.4.430.0070.07019.52
5.4.420.0030.05319.42
5.4.410.0030.08019.41
5.4.400.0070.04719.22
5.4.390.0000.04018.93
5.4.380.0000.06019.19
5.4.370.0100.07019.21
5.4.360.0100.07019.24
5.4.350.0030.05319.13
5.4.340.0030.06719.25
5.4.320.0030.03718.93
5.4.310.0030.05318.78
5.4.300.0070.05019.23
5.4.290.0070.03719.13
5.4.280.0000.04018.78
5.4.270.0100.03019.09
5.4.260.0030.05318.92
5.4.250.0170.06018.77
5.4.240.0100.07019.12
5.4.230.0070.06719.15
5.4.220.0070.06319.12
5.4.210.0070.07019.10
5.4.200.0130.03719.21
5.4.190.0070.07719.22
5.4.180.0000.04019.22
5.4.170.0000.03718.90
5.4.160.0030.03719.11
5.4.150.0030.04719.13
5.4.140.0030.06716.18
5.4.130.0000.05716.34
5.4.120.0030.06316.39
5.4.110.0030.05016.39
5.4.100.0030.05016.46
5.4.90.0030.05316.19
5.4.80.0070.05316.41
5.4.70.0030.03316.41
5.4.60.0070.03016.41
5.4.50.0000.06016.16
5.4.40.0030.07716.36
5.4.30.0070.06316.00
5.4.20.0000.06316.42
5.4.10.0030.07716.42
5.4.00.0100.04715.88
5.3.290.0030.06314.52
5.3.280.0070.06714.46
5.3.270.0000.05714.43
5.3.260.0170.03314.62
5.3.250.0000.07314.57
5.3.240.0030.07014.59
5.3.230.0000.04714.49
5.3.220.0000.07714.40
5.3.210.0070.06014.50
5.3.200.0000.07714.54
5.3.190.0030.04314.51
5.3.180.0030.03714.54
5.3.170.0000.04014.40
5.3.160.0000.04314.53
5.3.150.0100.06314.46
5.3.140.0130.03714.42
5.3.130.0030.07714.54
5.3.120.0030.04014.48
5.3.110.0000.04714.41
5.3.100.0100.07013.93
5.3.90.0030.04713.96
5.3.80.0000.04314.04
5.3.70.0000.04314.10
5.3.60.0070.03313.96
5.3.50.0030.06713.89
5.3.40.0130.02713.71
5.3.30.0070.07013.95
5.3.20.0000.07713.54
5.3.10.0030.04313.50
5.3.00.0030.05313.68

preferences:
61.18 ms | 400 KiB | 5 Q