3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('../inc/connect.php'); $pageTitle = 'Bericht plaatsen'; include(ROOT_DIR.'/header.php'); $append = ''; if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['secure']) && isset($_POST['ref']) && isset($_POST['email']) && isset($_POST['message']) && $_POST['token'] === $_SESSION['TICKET_FORM_TOKEN'] && isset($_POST['recaptcha_challenge_field']) && isset($_POST['recaptcha_response_field'])) { sleep(2); $_SESSION['TICKET_FORM_TOKEN'] = hash('sha256',mt_rand().time()); $resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); if($_POST['secure'] === hash('sha256',$_POST['ref'].$_POST['email'].SECRET_STRING)) { if($ticket = $_ticket->getTicket($_POST['ref'],$_POST['email'])) { if($resp->is_valid) { $status = explode('|',$_ticket->addAnwser($ticket['id'],$_POST['message'],0)); if($status[0] == 'OK') { $append = '<div class="alert alert-success">Uw bericht is succesvol toegevoegd.</div><a href="'.$setting['url'].'view-ticket?ref='.$ticket['ref'].'&email='.$ticket['email'].'" class="btn btn-block">Klik hier om terug te gaan</a>'; } else { $append = '<div class="alert alert-error">Uw bericht kon niet toegevoegd worden: '.$status[1].'</div><a href="javascript:;" onclick="history.go(-1)" class="btn btn-block">Klik hier om terug te gaan</a>'; } } else { $append = '<div class="alert alert-error">U heeft de veiligheidscode verkeerd ingevoerd.</div><a href="javascript:;" onclick="history.go(-1)" class="btn btn-block">Klik hier om terug te gaan</a>'; } } else { $append = '<div class="alert alert-error">Geen ticket gevonden</div><a href="javascript:;" onclick="history.go(-1)" class="btn btn-block">Klik hier om terug te gaan</a>'; } } else { $append = '<div class="alert alert-error">U bent niet gemachtigd om deze pagina te bekijken</div><a href="javascript:;" onclick="history.go(-1)" class="btn btn-block">Klik hier om terug te gaan</a>'; } } else { header('Location: '.$setting['url']); die(); } ?> <div class="row-fluid"> <div class="span4 offset4"> <h2>Bericht plaatsen</h2> <div class="well"> <?=$append;?> </div> </div> </div> <?php include(ROOT_DIR.'/footer.php'); ?>

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.4.10.0040.01114.76
7.4.00.0100.00715.14
7.3.130.0040.01414.85
7.3.120.0090.00914.84
7.3.110.0130.00614.90
7.3.100.0060.00914.73
7.3.90.0120.00314.59
7.3.80.0000.01114.82
7.3.70.0070.00714.82
7.3.60.0040.00714.86
7.3.50.0140.00014.63
7.3.40.0090.00614.47
7.3.30.0000.01414.90
7.3.20.0060.00916.58
7.3.10.0030.01216.75
7.3.00.0030.01016.76
7.2.260.0070.01014.94
7.2.250.0070.01014.92
7.2.240.0110.00314.90
7.2.230.0110.00314.90
7.2.220.0060.01214.72
7.2.210.0030.00915.18
7.2.200.0000.01015.05
7.2.190.0070.00714.75
7.2.180.0000.01015.05
7.2.170.0040.01115.05
7.2.160.0050.00515.04
7.2.150.0070.00316.95
7.2.140.0080.00316.94
7.2.130.0130.00316.42
7.2.120.0070.00716.67
7.2.110.0120.00316.91
7.2.100.0040.00816.84
7.2.90.0000.01216.71
7.2.80.0100.00716.61
7.2.70.0060.00916.76
7.2.60.0000.01216.80
7.2.50.0030.01316.75
7.2.40.0000.01116.94
7.2.30.0060.00916.70
7.2.20.0060.00916.82
7.2.10.0120.00416.94
7.2.00.0050.01018.09
7.1.330.0040.01415.70
7.1.320.0000.01715.68
7.1.310.0030.01015.64
7.1.300.0070.00715.80
7.1.290.0080.00815.52
7.1.280.0040.01115.84
7.1.270.0060.00915.49
7.1.260.0070.00715.75
7.1.250.0030.01415.71
7.1.240.0040.01115.59
7.1.230.0070.00715.63
7.1.220.0040.01115.81
7.1.210.0030.01015.80
7.1.200.0050.00515.41
7.1.190.0090.00015.80
7.1.180.0080.00615.59
7.1.170.0030.01015.83
7.1.160.0080.00415.77
7.1.150.0060.00615.80
7.1.140.0040.01115.62
7.1.130.0070.00715.72
7.1.120.0030.01015.46
7.1.110.0070.00715.79
7.1.100.0050.00716.91
7.1.90.0040.00715.52
7.1.80.0060.00615.68
7.1.70.0060.00616.38
7.1.60.0060.00816.38
7.1.50.0080.00916.31
7.1.40.0060.00915.76
7.1.30.0060.00615.69
7.1.20.0090.00315.64
7.1.10.0060.00315.80
7.1.00.0090.04018.90
7.0.330.0030.01114.86
7.0.320.0090.00315.43
7.0.310.0060.00615.09
7.0.300.0030.00615.32
7.0.290.0030.00715.12
7.0.280.0030.01015.19
7.0.270.0080.00815.29
7.0.260.0110.00015.24
7.0.250.0040.01115.34
7.0.240.0060.00615.11
7.0.230.0050.00515.28
7.0.220.0040.01115.48
7.0.210.0060.00315.40
7.0.200.0020.00815.95
7.0.190.0070.00715.39
7.0.180.0040.00415.27
7.0.170.0030.01015.32
7.0.160.0040.00815.43
7.0.150.0050.00515.31
7.0.140.0060.04018.60
7.0.130.0030.01315.29
7.0.120.0060.00615.38
7.0.110.0040.00815.45
7.0.100.0020.02217.49
7.0.90.0030.02517.78
7.0.80.0130.04017.46
7.0.70.0130.03517.65
7.0.60.0170.04217.49
7.0.50.0040.03817.88
7.0.40.0060.04916.69
7.0.30.0130.03816.58
7.0.20.0050.03316.59
7.0.10.0110.04016.64
7.0.00.0040.04716.59
5.6.400.0090.00614.02
5.6.390.0070.00314.38
5.6.380.0030.00914.15
5.6.370.0060.00914.27
5.6.360.0070.01114.38
5.6.350.0090.00614.17
5.6.340.0080.00414.38
5.6.330.0070.00314.24
5.6.320.0100.00314.21
5.6.310.0030.00614.23
5.6.300.0080.00814.16
5.6.290.0030.00814.27
5.6.280.0070.04017.71
5.6.270.0030.01114.28
5.6.260.0060.00613.93
5.6.250.0050.02717.23
5.6.240.0060.02917.49
5.6.230.0040.02117.42
5.6.220.0080.02317.34
5.6.210.0070.04417.42
5.6.200.0120.03317.51
5.6.190.0030.04217.77
5.6.180.0150.03817.47
5.6.170.0140.02117.63
5.6.160.0020.04917.64
5.6.150.0100.03717.54
5.6.140.0060.04317.67
5.6.130.0090.01717.46
5.6.120.0120.03917.51
5.6.110.0060.03317.53
5.6.100.0050.04317.63
5.6.90.0030.03017.48
5.6.80.0080.04217.25
5.6.70.0120.03817.24
5.6.60.0080.04117.14
5.6.50.0130.04317.14
5.6.40.0050.05017.30
5.6.30.0090.03817.15
5.6.20.0100.03817.27
5.6.10.0050.02317.25
5.6.00.0150.03717.38
5.5.380.0050.02817.23
5.5.370.0050.02317.40
5.5.360.0030.03017.22
5.5.350.0070.04217.23
5.5.340.0100.04417.35
5.5.330.0080.04317.37
5.5.320.0120.04217.27
5.5.310.0020.04517.29
5.5.300.0050.04717.55
5.5.290.0080.02517.60
5.5.280.0020.04517.58
5.5.270.0030.04217.26
5.5.260.0070.04117.36
5.5.250.0070.04117.40
5.5.240.0080.04516.92
5.5.230.0050.04416.97
5.5.220.0060.04417.03
5.5.210.0070.03517.14
5.5.200.0060.04417.09
5.5.190.0150.03717.11
5.5.180.0070.02717.09
5.5.170.0090.00313.88
5.5.160.0090.02717.13
5.5.150.0070.03517.20
5.5.140.0050.03316.97
5.5.130.0080.04517.22
5.5.120.0060.04316.93
5.5.110.0070.03817.14
5.5.100.0050.03316.98
5.5.90.0050.02817.03
5.5.80.0080.02417.13
5.5.70.0120.02916.96
5.5.60.0090.03617.02
5.5.50.0100.03817.11
5.5.40.0110.02316.89
5.5.30.0100.04117.02
5.5.20.0100.04416.88
5.5.10.0070.04817.15
5.5.00.0050.02616.98
5.4.450.0030.04316.08
5.4.440.0090.03316.12
5.4.430.0060.03416.04
5.4.420.0050.04816.11
5.4.410.0100.03715.88
5.4.400.0090.04316.00
5.4.390.0090.02715.93
5.4.380.0070.03215.87
5.4.370.0080.04315.87
5.4.360.0030.03215.90
5.4.350.0150.03215.94
5.4.340.0030.02815.95
5.4.330.0070.00312.76
5.4.320.0060.02115.86
5.4.310.0080.02715.95
5.4.300.0080.03615.77
5.4.290.0010.04316.00
5.4.280.0090.04015.84
5.4.270.0070.03515.94
5.4.260.0080.02615.86
5.4.250.0080.02715.95
5.4.240.0000.04015.93
5.4.230.0080.03515.94
5.4.220.0020.04315.87
5.4.210.0050.03515.91
5.4.200.0080.02015.94
5.4.190.0080.02815.77
5.4.180.0060.03815.94
5.4.170.0020.03615.93
5.4.160.0080.01815.95
5.4.150.0030.02715.82
5.4.140.0020.03814.53
5.4.130.0050.04214.58
5.4.120.0030.02814.53
5.4.110.0070.03714.52
5.4.100.0050.03514.59
5.4.90.0050.04014.61
5.4.80.0030.04514.60
5.4.70.0080.03014.48
5.4.60.0030.03714.48
5.4.50.0070.03714.59
5.4.40.0080.03514.61
5.4.30.0050.03814.51
5.4.20.0050.03914.53
5.4.10.0070.03414.54
5.4.00.0090.02614.25
5.3.290.0050.03813.66
5.3.280.0080.04013.61
5.3.270.0050.03213.70
5.3.260.0070.02513.66
5.3.250.0030.03713.70
5.3.240.0100.03813.67
5.3.230.0090.02513.69
5.3.220.0020.04613.68
5.3.210.0050.04113.67
5.3.200.0030.03913.66
5.3.190.0110.03713.66
5.3.180.0020.03713.67
5.3.170.0050.03113.67
5.3.160.0020.02613.65
5.3.150.0030.04213.67
5.3.140.0070.03713.66
5.3.130.0090.04413.66
5.3.120.0050.03313.66
5.3.110.0060.02613.66
5.3.100.0070.03813.33
5.3.90.0030.04113.33
5.3.80.0030.04513.41
5.3.70.0090.03913.39
5.3.60.0010.04113.38
5.3.50.0180.02513.30
5.3.40.0070.03913.30
5.3.30.0100.03513.33
5.3.20.0050.03513.17
5.3.10.0020.04113.15
5.3.00.0030.02813.14
5.2.170.0070.05311.14
5.2.160.0070.04011.18
5.2.150.0000.06711.02
5.2.140.0030.05711.13
5.2.130.0130.05711.09
5.2.120.0070.06010.93
5.2.110.0070.04310.95
5.2.100.0000.06310.99
5.2.90.0070.05010.95
5.2.80.0070.05011.08
5.2.70.0030.06710.91
5.2.60.0030.05311.08
5.2.50.0030.06310.97
5.2.40.0170.05310.99
5.2.30.0130.05711.06
5.2.20.0070.05711.01
5.2.10.0000.05710.80
5.2.00.0100.06010.77
5.1.60.0070.05310.38
5.1.50.0070.04710.38
5.1.40.0070.04310.38
5.1.30.0030.05710.38
5.1.20.0000.05710.38
5.1.10.0030.05710.38
5.1.00.0070.04010.38
5.0.50.0000.03010.38
5.0.40.0030.04310.38
5.0.30.0030.06710.38
5.0.20.0030.02010.38
5.0.10.0030.04710.38
5.0.00.0030.06310.38
4.4.90.0070.03010.38
4.4.80.0000.03710.38
4.4.70.0030.03010.38
4.4.60.0030.02710.38
4.4.50.0030.03310.38
4.4.40.0070.04710.38
4.4.30.0000.03310.38
4.4.20.0030.03010.38
4.4.10.0000.02010.38
4.4.00.0000.05010.38
4.3.110.0000.02710.38
4.3.100.0070.02010.38
4.3.90.0030.01710.38
4.3.80.0030.05710.38
4.3.70.0030.03710.38
4.3.60.0100.02310.38
4.3.50.0070.02710.38
4.3.40.0000.05310.38
4.3.30.0030.03310.38
4.3.20.0030.03710.38
4.3.10.0000.04010.38
4.3.00.0030.03310.38

preferences:
37.87 ms | 401 KiB | 5 Q