3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testData = [ // this is the demo email used in the proof of concept of the exploit '"attacker\" -oQ/tmp/ -X/var/www/cache/phpcode.php "@email.com', // trying more adresses '"Attacker -Param2 -Param3"@test.com', '\'Attacker -Param2 -Param3\'@test.com', '"Attacker \" -Param2 -Param3"@test.com', "'Attacker \\' -Param2 -Param3'@test.com", '"attacker\" -oQ/tmp/ -X/var/www/cache/phpcode.php "@email.com', // and even more variants '"attacker\"\ -oQ/tmp/\ -X/var/www/cache/phpcode.php"@email.com', "\"attacker\\\"\0-oQ/tmp/\0-X/var/www/cache/phpcode.php\"@email.com", '"attacker@cebe.cc\"-Xbeep"@email.com', "'attacker\\' -oQ/tmp/ -X/var/www/cache/phpcode.php'@email.com", "'attacker\\\\' -oQ/tmp/ -X/var/www/cache/phpcode.php'@email.com", "'attacker\\\\'\\ -oQ/tmp/ -X/var/www/cache/phpcode.php'@email.com", "'attacker\\';touch /tmp/hackme'@email.com", "'attacker\\\\';touch /tmp/hackme'@email.com", "'attacker\\';touch/tmp/hackme'@email.com", "'attacker\\\\';touch/tmp/hackme'@email.com", '"attacker\" -oQ/tmp/ -X/var/www/cache/phpcode.php "@email.com', ]; foreach ($testData as $email) { echo "$email: " . (filter_var($email, FILTER_VALIDATE_EMAIL) ? 'Valid' : 'Invalid') . "\n"; }

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.5.20.0050.00618.38
8.5.10.0050.00317.32
8.5.00.0130.00920.29
8.4.170.0140.01024.00
8.4.160.0110.01320.84
8.4.150.0020.00014.05
8.4.140.0130.01218.22
8.4.130.0100.01018.52
8.4.120.0080.01321.16
8.4.110.0110.01122.65
8.4.100.0120.00718.19
8.4.90.0110.01119.02
8.4.80.0080.00918.46
8.4.70.0110.01018.28
8.4.60.0040.00819.20
8.4.50.0140.00818.40
8.4.40.0040.00419.09
8.4.30.0030.00620.65
8.4.20.0090.01218.42
8.4.10.0090.00019.75
8.3.300.0110.00921.13
8.3.290.0100.01221.16
8.3.280.0130.00818.95
8.3.270.0120.00817.10
8.3.260.0110.00916.89
8.3.250.0100.00919.17
8.3.240.0120.00917.01
8.3.230.0140.00617.18
8.3.220.0130.00717.55
8.3.210.0090.00517.13
8.3.200.0060.00317.14
8.3.190.0100.01017.34
8.3.180.0150.00617.01
8.3.170.0070.00719.40
8.3.160.0030.00617.18
8.3.150.0040.01619.25
8.3.140.0060.00316.99
8.3.130.0060.01318.68
8.3.120.0070.01319.38
8.3.110.0070.00320.94
8.3.100.0130.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00717.13
8.3.70.0130.00316.99
8.3.60.0130.00318.93
8.3.50.0100.01124.78
8.3.40.0140.00022.14
8.3.30.0190.00419.17
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.300.0120.01022.55
8.2.290.0080.00620.71
8.2.280.0050.00418.89
8.2.270.0100.01017.48
8.2.260.0040.01518.66
8.2.250.0030.00616.96
8.2.240.0030.00617.55
8.2.230.0030.00722.58
8.2.220.0100.01037.54
8.2.210.0090.00026.77
8.2.200.0040.00816.88
8.2.190.0090.00616.88
8.2.180.0150.00025.92
8.2.170.0120.00319.31
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0100.01024.66
8.2.130.0030.01326.16
8.2.120.0150.00421.21
8.2.110.0060.00322.63
8.2.100.0080.00418.41
8.2.90.0040.00418.47
8.2.80.0080.00019.52
8.2.70.0160.00879.33
8.2.60.0110.01179.33
8.2.50.0210.00479.33
8.2.40.0160.00479.33
8.2.30.0150.00679.33
8.2.20.0190.00379.33
8.2.10.0180.00679.33
8.2.00.0110.00979.33
8.1.340.0100.01122.00
8.1.330.0110.00822.19
8.1.320.0110.00816.75
8.1.310.0060.00318.78
8.1.300.0030.00618.45
8.1.290.0070.00318.88
8.1.280.0120.00425.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00324.31
8.1.230.0060.00621.27
8.1.220.0000.00818.14
8.1.210.0090.00018.91
8.1.200.0150.00679.33
8.1.190.0140.00779.33
8.1.180.0180.00379.33
8.1.170.0130.00879.33
8.1.160.0180.00079.33
8.1.150.0200.00079.33
8.1.140.0130.00779.33
8.1.130.0190.00079.33
8.1.120.0120.00879.33
8.1.110.0120.00679.33
8.1.100.0180.00379.33
8.1.90.0110.00779.33
8.1.80.0080.01279.33
8.1.70.0120.00879.33
8.1.60.0150.00579.33
8.1.50.0150.00979.33
8.1.40.0180.00379.33
8.1.30.0160.00579.33
8.1.20.0200.00779.33
8.1.10.0200.00079.33
8.1.00.0150.00879.33
8.0.300.0040.00420.59
8.0.290.0130.00479.33
8.0.280.0150.00479.33
8.0.270.0120.00679.33
8.0.260.0140.00379.33
8.0.250.0100.00679.33
8.0.240.0080.00879.33
8.0.230.0140.00379.33
8.0.220.0170.00079.33
8.0.210.0130.00579.33
8.0.200.0110.00879.33
8.0.190.0140.00579.33
8.0.180.0120.00679.33
8.0.170.0140.00379.33
8.0.160.0160.00079.33
8.0.150.0130.00479.33
8.0.140.0120.00679.33
8.0.130.0100.00779.33
8.0.120.0180.00079.33
8.0.110.0100.00779.33
8.0.100.0140.00779.33
8.0.90.0170.00079.33
8.0.80.0080.01179.33
8.0.70.0090.00979.33
8.0.60.0140.00379.33
8.0.50.0090.00979.33
8.0.30.0120.00879.33
8.0.20.0100.01079.33
8.0.10.0190.00079.33
8.0.00.0160.00379.33
7.4.330.0140.00079.33
7.4.320.0170.00079.33
7.4.300.0110.00779.33
7.4.290.0160.00079.33
7.4.280.0070.01079.33
7.4.270.0130.00379.33
7.4.260.0060.01279.33
7.4.250.0170.00079.33
7.4.240.0130.00379.33
7.4.230.0000.01679.33
7.4.220.0140.00379.33
7.4.210.0150.00079.33
7.4.200.0110.00679.33
7.4.190.0170.00079.33
7.4.180.0100.00579.33
7.4.160.0100.00879.33
7.4.150.0170.00079.33
7.4.140.0100.00579.33
7.4.130.0090.00679.33
7.4.120.0190.00079.33
7.4.110.0110.00779.33
7.4.100.0120.00679.33
7.4.90.0170.00079.33
7.4.80.0120.00679.33
7.4.70.0140.00479.33
7.4.60.0170.00079.33
7.4.50.0070.01079.33
7.4.40.0100.00779.33
7.4.30.0140.00379.33
7.4.20.0200.00079.33
7.4.10.0140.00479.33
7.4.00.0160.00079.33
7.3.330.0120.00379.33
7.3.320.0150.00079.33
7.3.310.0100.00579.33
7.3.300.0140.00379.33
7.3.290.0110.00579.33
7.3.280.0160.00079.33
7.3.270.0160.00079.33
7.3.260.0160.00079.33
7.3.250.0130.00379.33
7.3.240.0120.00479.33
7.3.230.0170.00079.33
7.3.220.0090.00979.33
7.3.210.0080.00879.33
7.3.200.0160.00079.33
7.3.190.0140.00379.33
7.3.180.0170.00079.33
7.3.170.0130.00379.33
7.3.160.0070.01079.33
7.3.150.0130.00479.33
7.3.140.0070.01079.33
7.3.130.0100.00879.33
7.3.120.0140.00379.33
7.3.110.0130.00379.33
7.3.100.0100.00579.33
7.3.90.0120.00579.33
7.3.80.0160.00079.33
7.3.70.0110.00679.33
7.3.60.0170.00079.33
7.3.50.0170.00079.33
7.3.40.0100.00679.33
7.3.30.0150.00279.33
7.3.20.0180.00079.33
7.3.10.0140.00379.33
7.3.00.0150.00479.33
7.2.340.0160.00379.33
7.2.330.0150.00379.33
7.2.320.0090.00979.33
7.2.310.0100.01079.33
7.2.300.0190.00079.33
7.2.290.0100.01079.33
7.2.280.0110.00779.33
7.2.270.0140.00479.33
7.2.260.0120.00679.33
7.2.250.0050.01479.33
7.2.240.0090.01379.33
7.2.230.0160.00379.33
7.2.220.0110.00779.33
7.2.210.0200.00379.33
7.2.200.0120.00879.33
7.2.190.0100.00779.33
7.2.180.0110.00879.33
7.2.170.0140.00379.33
7.2.160.0170.00079.33
7.2.150.0130.00579.33
7.2.140.0120.00679.33
7.2.130.0100.01079.33
7.2.120.0140.00479.33
7.2.110.0110.00779.33
7.2.100.0150.00379.33
7.2.90.0110.00779.33
7.2.80.0100.00979.33
7.2.70.0150.00379.33
7.2.60.0170.00379.33
7.2.50.0150.00679.33
7.2.40.0130.00679.33
7.2.30.0090.00979.33
7.2.20.0130.00679.33
7.2.10.0150.00479.33
7.2.00.0210.00079.33
7.0.100.0190.00718.26

preferences:
34.63 ms | 403 KiB | 5 Q