3v4l.org

run code in 300+ PHP versions simultaneously
<?php @"SourceGuardian"; //v10.1.6 evaluation if (!function_exists('sg_load')) { $__v = phpversion(); $__x = explode('.', $__v); $__v2 = $__x[0] . '.' . (int) $__x[1]; $__u = strtolower(substr(php_uname(), 0, 3)); $__ts = (@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE') ? 'ts' : ''); $__f = $__f0 = 'ixed.' . $__v2 . $__ts . '.' . $__u; $__ff = $__ff0 = 'ixed.' . $__v2 . '.' . (int) $__x[2] . $__ts . '.' . $__u; $__ed = @ini_get('extension_dir'); $__e = $__e0 = @realpath($__ed); $__dl = function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode'); if ($__dl && $__e && version_compare($__v, '5.2.5', '<') && function_exists('getcwd') && function_exists('dirname')) { $__d = $__d0 = getcwd(); if (@$__d[1] == ':') { $__d = str_replace('\\', '/', substr($__d, 2)); $__e = str_replace('\\', '/', substr($__e, 2)); } $__e .= ($__h = str_repeat('/..', substr_count($__e, '/'))); $__f = '/ixed/' . $__f0; $__ff = '/ixed/' . $__ff0; while (!file_exists($__e . $__d . $__ff) && !file_exists($__e . $__d . $__f) && strlen($__d) > 1) { $__d = dirname($__d); } if (file_exists($__e . $__d . $__ff)) dl($__h . $__d . $__ff); else if (file_exists($__e . $__d . $__f)) dl($__h . $__d . $__f); } if (!function_exists('sg_load') && $__dl && $__e0) { if (file_exists($__e0 . '/' . $__ff0)) dl($__ff0); else if (file_exists($__e0 . '/' . $__f0)) dl($__f0); } if (!function_exists('sg_load')) { $__ixedurl = 'http://www.sourceguardian.com/loaders/download.php?php_v=' . urlencode($__v) . '&php_ts=' . ($__ts ? '1' : '0') . '&php_is=' . @constant('PHP_INT_SIZE') . '&os_s=' . urlencode(php_uname('s')) . '&os_r=' . urlencode(php_uname('r')) . '&os_m=' . urlencode(php_uname('m')); $__sapi = php_sapi_name(); if (!$__e0) $__e0 = $__ed; if (function_exists('php_ini_loaded_file')) $__ini = php_ini_loaded_file(); else $__ini = 'php.ini'; if ((substr($__sapi, 0, 3) == 'cgi') || ($__sapi == 'cli') || ($__sapi == 'embed')) { $__msg = "\nPHP script '" . __FILE__ . "' is protected by SourceGuardian and requires a SourceGuardian loader '" . $__f0 . "' to be installed.\n\n1) Download the required loader '" . $__f0 . "' from the SourceGuardian site: " . $__ixedurl . "\n2) Install the loader to "; if (isset($__d0)) { $__msg .= $__d0 . DIRECTORY_SEPARATOR . 'ixed'; } else { $__msg .= $__e0; if (!$__dl) { $__msg .= "\n3) Edit " . $__ini . " and add 'extension=" . $__f0 . "' directive"; } } $__msg .= "\n\n"; } else { $__msg = "<html><body>PHP script '" . __FILE__ . "' is protected by <a href=\"http://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '" . $__f0 . "' to be installed.<br><br>1) <a href=\"" . $__ixedurl . "\" target=\"_blank\">Click here</a> to download the required '" . $__f0 . "' loader from the SourceGuardian site<br>2) Install the loader to "; if (isset($__d0)) { $__msg .= $__d0 . DIRECTORY_SEPARATOR . 'ixed'; } else { $__msg .= $__e0; if (!$__dl) { $__msg .= "<br>3) Edit " . $__ini . " and add 'extension=" . $__f0 . "' directive<br>4) Restart the web server"; } } $msg .= "</body></html>"; } die($__msg); exit(); } } return sg_load('625B72158980E6CDAAQAAAAWAAAABGgAAACABAAAAAAAAAD/rMvXzjx/262fsveWFgwD76gDYzaKOiGlQamw3RM+jeDg1r0nzDb7wXjAEjhMKahKcLIMQDIf0r1fRV7dzveUnldE9d9dpZ0i07jxMgwRC1wK5sz3TNfXprOj6kvMXijVntp8S2FQ0Ts2AAAAkAAAAA7CZj5TcEq73KgLgBzS2romRkg7nh7w3hBW7FGGZWLdWmKOgaEz33MlbvdFsZ+ToFnZjImvErmT3ThsB/yF+y3nnyxXw45PHw8fke0wiwwD2hKlOD00sfeDNI5nADtL7LiuYeQt2nbO1l0ZxQJyLiU1m9x3OHOvOtihhBroyRGXf1Ntd3WRaUKRCqFOpEDbWTcAAACIAAAAmUhEqNggdMfGlIxUkr+9Iuo45DR4uOSwdxILR1Y2TreWE6aa4WYOEkI6HiwAY7GZtBP7q6JyknQFwCFBHjS+GkxqWUBdz6tPxKQsRAOIWNt9AuRjdeGBjSTdPtR3qXi1LauU7fT0R+RK28niCEV5S6QhHNvOzN25y4tZaCglUcjvOj7qb4s2gDgAAACIAAAAjIP/DtFa4dEnJIRPWBSk/LBOeLPlb/2MTYA0TK9LXP+CTgkWe/B7Ss5GIDeGBBLhUpB6XY70meImlh4N4g2HlKUqHHOvd2e/G1F/KqexpG/P0Xjbj/MQYOcv7d/pZ7VW+8stS7KoltJqaOmXMPTdVj6f9hEJwQZSAV1K0PHLfKsFppgEfaDqQgAAAAA=');

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.4.80.0240.00618.16
8.3.00.0160.00828.09
8.2.130.0110.00828.09
8.2.120.0140.00828.09
8.2.110.0160.00928.09
8.2.100.0240.00628.09
8.2.90.0200.00528.09
8.2.80.0160.00928.09
8.2.70.0130.01428.09
8.2.60.0190.00928.09
8.2.50.0170.00928.09
8.2.40.0080.01328.09
8.2.30.0160.00728.09
8.2.20.0150.00628.09
8.2.10.0110.00821.99
8.2.00.0120.01024.70
8.1.260.0170.00428.09
8.1.250.0130.00728.09
8.1.240.0140.00728.09
8.1.230.0160.00728.09
8.1.220.0110.01128.09
8.1.210.0090.00928.09
8.1.200.0170.00828.09
8.1.190.0130.00528.09
8.1.180.0120.00928.09
8.1.170.0090.00628.09
8.1.160.0080.00528.09
8.1.150.0110.00628.09
8.1.140.0070.00324.56
8.1.130.0100.00324.59
8.1.120.0100.00324.60
8.1.110.0090.00724.58
8.1.100.0090.00724.61
8.1.90.0070.00624.65
8.1.80.0090.00724.61
8.1.70.0070.00824.63
8.1.60.0100.00624.63
8.1.50.0120.00124.60
8.1.40.0110.00424.66
8.1.30.0120.00624.65
8.1.20.0140.00524.65
8.1.10.0120.00624.68
8.1.00.0090.00424.62
8.0.300.0050.01028.09
8.0.290.0160.00428.09
8.0.280.0120.00428.09
8.0.270.0070.00224.41
8.0.260.0090.00524.40
8.0.250.0060.00424.43
8.0.240.0110.00624.39
8.0.230.0180.00124.39
8.0.220.0050.00924.40
8.0.210.0080.00524.37
8.0.200.0070.00724.42
8.0.190.0100.00624.44
8.0.180.0080.00524.42
8.0.170.0060.00724.41
8.0.160.0100.00324.38
8.0.150.0080.00824.38
8.0.140.0070.00824.37
8.0.130.0120.00224.38
8.0.120.0100.00721.69
8.0.110.0100.00521.65
8.0.100.0110.00421.64
8.0.90.0120.00321.67
8.0.80.0090.00521.66
8.0.70.0090.00521.67
8.0.60.0100.00621.71
8.0.50.0100.00921.70
8.0.30.0060.00721.70
8.0.20.0050.00921.70
8.0.10.0050.00721.75
8.0.00.0110.00521.74
7.4.330.0150.00324.06
7.4.320.0180.00924.23
7.4.300.0180.00824.28
7.4.290.0220.00424.26
7.4.280.0170.01124.26
7.4.270.0160.00524.27
7.4.260.0190.00524.28
7.4.250.0150.00521.58
7.4.240.0120.00621.56
7.4.230.0100.00621.53
7.4.220.0140.00521.55
7.4.210.0140.00521.52
7.4.200.0130.00621.56
7.4.190.0150.00821.59
7.4.180.0150.00221.58
7.4.160.0120.00321.57
7.4.150.0130.00221.54
7.4.140.0120.00221.51
7.4.130.0120.00621.49
7.4.120.0150.00221.49
7.4.110.0130.00520.51
7.4.100.0140.00519.90
7.4.90.0120.00819.88
7.4.80.0190.00319.89
7.4.70.0120.00819.88
7.4.60.0130.00719.46
7.4.50.0130.00719.43
7.4.40.0140.00819.30
7.4.30.0120.00819.05
7.4.20.0130.00619.08
7.4.10.0120.01018.78
7.4.00.0100.00718.80
7.3.330.0140.00321.92
7.3.320.0160.00124.24
7.3.310.0120.00321.42
7.3.300.0100.00421.48
7.3.290.0100.00521.46
7.3.280.0110.00321.44
7.3.270.0100.00521.49
7.3.260.0120.00321.43
7.3.250.0120.00321.53
7.3.240.0100.00521.43
7.3.230.0130.00320.44
7.3.220.0150.00619.84
7.3.210.0150.00619.83
7.3.200.0180.00819.79
7.3.190.0160.00819.81
7.3.180.0140.00619.35
7.3.170.0150.00719.34
7.3.160.0140.00819.36
7.3.150.0130.00818.97
7.3.140.0160.00618.99
7.3.130.0150.00718.75
7.3.120.0130.00618.78
7.3.110.0140.00718.78
7.3.100.0100.00718.33
7.3.90.0100.00918.37
7.3.80.0130.00618.32
7.3.70.0130.00918.00
7.3.60.0130.00618.07
7.3.50.0130.00718.07
7.3.40.0090.00918.06
7.3.30.0100.00618.02
7.3.20.0110.00718.24
7.3.10.0120.00818.21
7.3.00.0110.00818.17
7.2.340.0080.00618.31
7.2.330.0120.00518.54
7.2.320.0140.00819.90
7.2.310.0110.00819.48
7.2.300.0140.00619.53
7.2.290.0140.00619.48
7.2.280.0150.00619.15
7.2.270.0120.00819.12
7.2.260.0090.00818.86
7.2.250.0100.00818.89
7.2.240.0130.00718.84
7.2.230.0110.00718.50
7.2.220.0110.00718.46
7.2.210.0110.00818.52
7.2.200.0120.00918.18
7.2.190.0140.00518.14
7.2.180.0120.00818.19
7.2.170.0110.00918.15
7.2.160.0120.00818.16
7.2.150.0140.00718.37
7.2.140.0130.00818.40
7.2.130.0170.00518.40
7.2.120.0160.00718.38
7.2.110.0140.01018.42
7.2.100.0220.00618.41
7.2.90.0160.00718.43
7.2.80.0150.00718.39
7.2.70.0130.01018.40
7.2.60.0150.00918.43
7.2.50.0160.00718.43
7.2.40.0150.00918.44
7.2.30.0150.00818.47
7.2.20.0150.00718.40
7.2.10.0160.00718.43
7.2.00.0160.00818.40
7.1.330.0160.00818.27
7.1.320.0160.00717.89
7.1.310.0150.00817.92
7.1.300.0170.00517.54
7.1.290.0150.00717.58
7.1.280.0120.00917.58
7.1.270.0140.00817.50
7.1.260.0140.00817.53
7.1.250.0160.00717.52
7.1.240.0160.00717.52
7.1.230.0160.00717.51
7.1.220.0170.00417.46
7.1.210.0140.00817.55
7.1.200.0140.00717.51
7.1.190.0170.00717.56
7.1.180.0160.00817.48
7.1.170.0170.00517.57
7.1.160.0130.00717.48
7.1.150.0150.00917.55
7.1.140.0140.00717.60
7.1.130.0160.00717.50
7.1.120.0140.01017.48
7.1.110.0160.00917.55
7.1.100.0190.00817.47
7.1.90.0130.00717.57
7.1.80.0170.00717.55
7.1.70.0150.00817.48
7.1.60.0140.00717.57
7.1.50.0160.00517.53
7.1.40.0140.00717.46
7.1.30.0120.00917.45
7.1.20.0120.00717.43
7.1.10.0120.00817.47
7.1.00.0130.00817.38
7.0.330.0150.00817.27
7.0.320.0130.00617.26
7.0.310.0150.00717.29
7.0.300.0170.00817.34
7.0.290.0180.00617.30
7.0.280.0160.00717.29
7.0.270.0170.00917.35
7.0.260.0160.00717.27
7.0.250.0170.00717.33
7.0.240.0150.00817.34
7.0.230.0170.00517.33
7.0.220.0130.00917.32
7.0.210.0160.00717.35
7.0.200.0160.00617.23
7.0.190.0140.00717.27
7.0.180.0140.00717.23
7.0.170.0140.00717.24
7.0.160.0120.00817.20
7.0.150.0140.00717.24
7.0.140.0130.00817.21
7.0.130.0130.00817.19
7.0.120.0130.00717.23
7.0.110.0120.00817.22
7.0.100.0130.00617.21
7.0.90.0110.00817.23
7.0.80.0150.00617.24
7.0.70.0120.00817.18
7.0.60.0110.00717.16
7.0.50.0120.00817.20
7.0.40.0120.00717.09
7.0.30.0120.00717.07
7.0.20.0130.00717.02
7.0.10.0130.00817.01
7.0.00.0160.00617.04
5.6.400.0120.00817.60
5.6.390.0150.00717.59
5.6.380.0150.00817.68
5.6.370.0130.00817.62
5.6.360.0140.00917.63
5.6.350.0140.00817.57
5.6.340.0140.00917.64
5.6.330.0140.00817.70
5.6.320.0130.00817.65
5.6.310.0150.00817.73
5.6.300.0120.01417.87
5.6.290.0110.01317.78
5.6.280.0090.01517.87
5.6.270.0100.01117.93
5.6.260.0130.01117.91
5.6.250.0080.01417.90
5.6.240.0110.01217.83
5.6.230.0120.01217.88
5.6.220.0120.01417.85
5.6.210.0130.01017.85
5.6.200.0130.01017.89
5.6.190.0130.01117.93
5.6.180.0120.01117.88
5.6.170.0120.01117.89
5.6.160.0140.01217.89
5.6.150.0130.01017.79
5.6.140.0110.01217.84
5.6.130.0120.01217.85
5.6.120.0100.01317.86
5.6.110.0110.01417.89
5.6.100.0110.01117.85
5.6.90.0110.01317.80
5.6.80.0130.01117.74
5.6.70.0100.01217.76
5.6.60.0110.01117.73
5.6.50.0130.01117.74
5.6.40.0100.01117.76
5.6.30.0110.01217.76
5.6.20.0130.01017.73
5.6.10.0120.01017.81
5.6.00.0120.01117.73
5.5.380.0120.01017.60
5.5.370.0130.01217.52
5.5.360.0130.01217.63
5.5.350.0160.01017.57
5.5.340.0140.00917.64
5.5.330.0150.01217.66
5.5.320.0120.01317.61
5.5.310.0120.01217.61
5.5.300.0150.01117.66
5.5.290.0160.01017.61
5.5.280.0130.01317.62
5.5.270.0110.01417.66
5.5.260.0160.00817.62
5.5.250.0140.01017.63
5.5.240.0110.01317.52
5.5.230.0140.00917.56
5.5.220.0140.01317.54
5.5.210.0120.01117.53
5.5.200.0140.00917.48
5.5.190.0120.01017.59
5.5.180.0120.01117.50
5.5.170.0130.00917.47
5.5.160.0140.01117.53
5.5.150.0130.01017.51
5.5.140.0120.01117.56
5.5.130.0150.00917.55
5.5.120.0130.01017.48
5.5.110.0130.01017.49
5.5.100.0130.01117.53
5.5.90.0160.01117.48
5.5.80.0100.01417.54
5.5.70.0130.01217.45
5.5.60.0100.01217.48
5.5.50.0130.01117.55
5.5.40.0120.01517.47
5.5.30.0130.01217.53
5.5.20.0140.01217.49
5.5.10.0140.01017.58
5.5.00.0130.01517.44
5.4.450.0120.00915.84
5.4.440.0100.01115.87
5.4.430.0120.00915.83
5.4.420.0110.00815.81
5.4.410.0100.01015.80
5.4.400.0110.00915.75
5.4.390.0110.00815.74
5.4.380.0120.00815.78
5.4.370.0110.01015.79
5.4.360.0130.00915.77
5.4.350.0120.00815.73
5.4.340.0100.01115.79
5.4.330.0110.00815.46
5.4.320.0100.00915.75
5.4.310.0100.01215.80
5.4.300.0110.00915.75
5.4.290.0100.01015.74
5.4.280.0090.01115.75
5.4.270.0100.01015.80
5.4.260.0110.00915.81
5.4.250.0110.00815.79
5.4.240.0110.00815.75
5.4.230.0110.00915.71
5.4.220.0100.00915.75
5.4.210.0100.01015.77
5.4.200.0110.00915.75
5.4.190.0110.00915.79
5.4.180.0100.01015.79
5.4.170.0110.00715.72
5.4.160.0100.00915.80
5.4.150.0120.00715.75
5.4.140.0100.01015.59
5.4.130.0090.01015.56
5.4.120.0110.00815.63
5.4.110.0080.00915.56
5.4.100.0100.00815.57
5.4.90.0100.00915.56
5.4.80.0110.00915.57
5.4.70.0090.00915.58
5.4.60.0100.00915.59
5.4.50.0120.00915.56
5.4.40.0110.00815.57
5.4.30.0120.00815.59
5.4.20.0110.00815.58
5.4.10.0090.01015.60
5.4.00.0100.00815.53

preferences:
32.83 ms | 401 KiB | 5 Q