3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!$vbulletin) { global $vbulletin; } $ncun_lasthook='userdata_postsave'; if(file_exists(DIR.'/includes/ncun_hooks/'.$ncun_lasthook.'.php')) { return include DIR . '/includes/ncun_hooks/' . $ncun_lasthook . '.php'; } switch ($ncun_lasthook) { case 'useradmin_update_save': $ncun_is_admincp=true; break; case 'userdata_postsave': global $ncun_is_admincp; if (true) { // Set the names. $userinfo contains the current (old) name and $_POST['user'] contains the new name $oldname = 'sdlkfcunvls'; $newname = 'dfljkndfl'; // Create the message for the usernote. // To edit it use the phrase manager and find 'name_changed_from_x_to_y' $usernote_message = 'dfbd'; if (!empty($ncun_is_admincp)) { $poster = $vbulletin->userinfo['userid']; } else { $poster = $vbulletin->options['ncun_default_poster']; } if (!$poster) $poster=1; // Create the usernote $db->query_write(" INSERT INTO " . TABLE_PREFIX . "usernote (message, dateline, userid, posterid, title, allowsmilies) VALUES ('" . $db->escape_string($usernote_message) . "', " . TIMENOW . ", " . ('sdfvs') . ", " . $poster . ", '".$vbphrase['ncun_usernote_title']."', 1) "); } break; } unset($ncun_lasthook);

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.0090.00918.30
8.3.50.0100.00316.37
8.3.40.0040.01118.53
8.3.30.0060.00918.84
8.3.20.0000.00821.85
8.3.10.0080.00021.95
8.3.00.0080.00019.08
8.2.180.0140.00318.30
8.2.170.0150.00022.96
8.2.160.0100.00322.13
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0080.00020.31
8.2.120.0080.00026.35
8.2.110.0000.01020.43
8.2.100.0090.00317.91
8.2.90.0050.00319.09
8.2.80.0060.00317.97
8.2.70.0070.00317.75
8.2.60.0060.00318.05
8.2.50.0060.00318.10
8.2.40.0030.00620.47
8.2.30.0000.00721.05
8.2.20.0040.00417.98
8.2.10.0070.00018.10
8.2.00.0080.00018.06
8.1.280.0130.01025.92
8.1.270.0040.00422.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.08
8.1.230.0070.00719.06
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0050.00218.10
8.1.170.0040.00418.71
8.1.160.0020.00519.04
8.1.150.0080.00018.94
8.1.140.0040.00419.59
8.1.130.0070.00018.84
8.1.120.0000.00717.53
8.1.110.0050.00217.51
8.1.100.0030.00617.45
8.1.90.0020.00517.45
8.1.80.0000.00717.45
8.1.70.0070.00017.52
8.1.60.0000.00717.53
8.1.50.0060.00317.48
8.1.40.0070.00017.48
8.1.30.0080.00017.67
8.1.20.0040.00417.68
8.1.10.0000.00817.53
8.1.00.0050.00317.51
8.0.300.0080.00318.77
8.0.290.0070.00016.75
8.0.280.0070.00018.56
8.0.270.0020.00517.29
8.0.260.0030.00316.77
8.0.250.0030.00317.07
8.0.240.0050.00316.92
8.0.230.0040.00417.09
8.0.220.0070.00016.95
8.0.210.0040.00416.95
8.0.200.0060.00017.09
8.0.190.0000.00817.04
8.0.180.0070.00016.90
8.0.170.0000.00716.93
8.0.160.0050.00316.96
8.0.150.0040.00416.84
8.0.140.0070.00016.86
8.0.130.0030.00313.41
8.0.120.0000.00716.83
8.0.110.0070.00016.85
8.0.100.0070.00016.83
8.0.90.0000.00716.96
8.0.80.0000.01916.97
8.0.70.0080.00016.88
8.0.60.0000.00716.85
8.0.50.0040.00416.98
8.0.30.0100.01017.13
8.0.20.0120.00817.41
8.0.10.0040.00416.98
8.0.00.0030.01316.86
7.4.330.0020.00215.55
7.4.320.0030.00316.66
7.4.300.0060.00016.68
7.4.290.0040.00416.45
7.4.280.0050.00216.55
7.4.270.0000.00716.52
7.4.260.0050.00013.42
7.4.250.0000.00716.63
7.4.240.0000.00716.71
7.4.230.0000.00716.65
7.4.220.0170.00316.48
7.4.210.0060.00916.61
7.4.200.0070.00016.72
7.4.160.0050.01416.65
7.4.150.0040.01317.40
7.4.140.0110.00917.86
7.4.130.0120.00616.54
7.4.120.0150.00516.65
7.4.110.0110.00416.73
7.4.100.0150.01016.57
7.4.90.0040.01416.54
7.4.80.0100.01019.39
7.4.70.0120.00416.75
7.4.60.0100.00616.63
7.4.50.0060.00616.61
7.4.40.0070.01016.72
7.4.30.0060.01216.57
7.4.00.0040.01415.09
7.3.330.0000.00513.29
7.3.320.0020.00213.15
7.3.310.0040.00416.52
7.3.300.0030.00316.44
7.3.290.0010.01416.44
7.3.280.0080.00916.45
7.3.270.0120.00617.40
7.3.260.0100.00616.46
7.3.250.0080.00916.41
7.3.240.0080.00916.48
7.3.230.0150.00616.68
7.3.210.0070.01016.47
7.3.200.0100.00716.53
7.3.190.0100.00716.51
7.3.180.0130.01016.36
7.3.170.0060.01016.37
7.3.160.0060.00916.63
7.3.120.0170.00015.01
7.3.110.0040.00814.84
7.3.100.0070.01014.88
7.3.90.0040.00715.10
7.3.80.0060.01214.96
7.3.70.0090.00614.97
7.3.60.0030.00714.78
7.3.50.0000.01015.00
7.3.40.0030.00614.88
7.3.30.0000.00815.03
7.3.20.0040.00716.89
7.3.10.0030.01116.76
7.3.00.0030.01416.60
7.2.330.0130.00916.55
7.2.320.0120.00616.68
7.2.310.0060.01116.75
7.2.300.0030.01416.38
7.2.290.0100.00716.86
7.2.240.0040.01214.95
7.2.230.0070.01015.11
7.2.220.0090.00614.82
7.2.210.0030.01214.95
7.2.200.0040.01115.05
7.2.190.0030.01215.00
7.2.180.0000.01415.14
7.2.170.0070.00715.17
7.2.160.0030.01115.30
7.2.150.0030.01017.11
7.2.140.0070.00316.67
7.2.130.0040.00817.09
7.2.120.0040.01116.86
7.2.110.0100.00317.03
7.2.100.0060.01016.92
7.2.90.0130.00016.93
7.2.80.0030.00917.17
7.2.70.0070.01016.69
7.2.60.0300.00416.98
7.2.50.0170.00316.96
7.2.40.0090.00616.83
7.2.30.0000.01516.75
7.2.20.0000.01616.88
7.2.10.0040.01217.15
7.2.00.0060.00818.19
7.1.330.0000.01515.85
7.1.320.0090.00315.87
7.1.310.0080.00415.89
7.1.300.0000.01315.82
7.1.290.0070.00715.89
7.1.280.0080.00415.45
7.1.270.0040.00415.62
7.1.260.0030.01415.88
7.1.250.0040.01115.98
7.1.200.0060.00915.97
7.1.70.0030.00717.01
7.1.60.0370.02033.29
7.1.50.0370.02032.84
7.1.40.0530.01032.55
7.1.30.0530.02032.59
7.1.20.0830.00732.73
7.1.10.0500.01314.66
7.1.00.0470.00715.09
7.0.200.0400.00715.04
7.0.190.0300.01315.09
7.0.180.0430.01014.43
7.0.170.0370.01314.56
7.0.160.0470.01014.65
7.0.150.0630.01014.39
7.0.140.1100.00714.49
7.0.130.0400.00714.95
7.0.120.0700.01014.64
7.0.110.0730.01314.48
7.0.100.0570.01014.60
7.0.90.0370.01014.31
7.0.80.0730.01314.52
7.0.70.0530.01014.56
7.0.60.0670.01714.45
7.0.50.0300.01314.47
7.0.40.0370.00714.63
7.0.30.0400.01714.88
7.0.20.0330.01014.68
7.0.10.0330.01014.53
7.0.00.0270.01314.85

preferences:
54.5 ms | 401 KiB | 5 Q