3v4l.org

run code in 300+ PHP versions simultaneously
<?php $safe_var = 'all your base they belong to us'; file_put_contents('/tmp/exploit.txt',$safe_var ); // imagine lots of stuff going on here... $safe_var = file_get_contents('/tmp/exploit.txt'); function make_literal(string $non_literal):string { $literal = ''; for( $i = 0; $i< strlen($non_literal); $i++ ){ $literal .= chr(ord($non_literal[$i])); } return $literal; } if ( !is_noble($safe_var)) { printf( "Darn! I can't use the data I need to use.\n"); } printf( "But wait...\n"); $safe_var = make_literal($safe_var); if ( is_noble($safe_var)) { printf( "Well, since you did not provide any way to handle *legitimate* exceptions\n"); printf( "then I will just work around you, you annoying little is_literal() function!\n\n"); echo strtoupper($safe_var); echo "!!!"; }

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.0120.00618.43
8.3.50.0070.00717.97
8.3.40.0140.00020.08
8.3.30.0070.01018.70
8.3.20.0080.00024.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.180.0060.00925.92
8.2.170.0070.01118.96
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.57
8.2.110.0060.00322.27
8.2.100.0060.00617.84
8.2.90.0030.00517.78
8.2.80.0050.00318.98
8.2.70.0120.00679.33
8.2.60.0180.00079.33
8.2.50.0120.00679.33
8.2.40.0130.00579.33
8.2.30.0070.01079.33
8.2.20.0110.00779.33
8.2.10.0140.00379.33
8.2.00.0150.00079.33
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.29
8.1.230.0080.00420.97
8.1.220.0030.00717.91
8.1.210.0030.00618.77
8.1.200.0150.00279.33
8.1.190.0040.01379.33
8.1.180.0120.00579.33
8.1.170.0130.00379.33
8.1.160.0090.01279.33
8.1.150.0120.00679.33
8.1.140.0160.00079.33
8.1.130.0130.00379.33
8.1.120.0090.00979.33
8.1.110.0170.00079.33
8.1.100.0040.01379.33
8.1.90.0090.00679.33
8.1.80.0100.00779.33
8.1.70.0080.00879.33
8.1.60.0090.00979.33
8.1.50.0140.00379.33
8.1.40.0120.00479.33
8.1.30.0130.00479.33
8.1.20.0120.00679.33
8.1.10.0200.00079.33
8.1.00.0120.00679.33
8.0.300.0070.00020.09
8.0.290.0050.01179.33
8.0.280.0160.00079.33
8.0.270.0090.00779.33
8.0.260.0100.00779.33
8.0.250.0160.00079.33
8.0.240.0130.00479.33
8.0.230.0120.00679.33
8.0.220.0090.00979.33
8.0.210.0160.00079.33
8.0.200.0160.00079.33
8.0.190.0170.00079.33
8.0.180.0080.00879.33
8.0.170.0120.00479.33
8.0.160.0090.00979.33
8.0.150.0110.00579.33
8.0.140.0080.00879.33
8.0.130.0080.00879.33
8.0.120.0130.00479.33
8.0.110.0160.00079.33
8.0.100.0090.00979.33
8.0.90.0110.00579.33
8.0.80.0160.00079.33
8.0.70.0140.00279.33
8.0.60.0100.00579.33
8.0.50.0120.00479.33
8.0.30.0080.00879.33
8.0.20.0120.00579.33
8.0.10.0170.00079.33
8.0.00.0060.01179.33
7.4.330.0100.00379.33
7.4.320.0120.00479.33
7.4.300.0150.00079.33
7.4.290.0140.00279.33
7.4.280.0120.00479.33
7.4.270.0140.00579.33
7.4.260.0000.01579.33
7.4.250.0170.00079.33
7.4.240.0160.00079.33
7.4.230.0140.00379.33
7.4.220.0100.00579.33
7.4.210.0110.00479.33
7.4.200.0080.00879.33
7.4.190.0120.00479.33
7.4.180.0130.00479.33
7.4.160.0170.00079.33
7.4.150.0100.00579.33
7.4.140.0120.00379.33
7.4.130.0080.00679.33
7.4.120.0110.00579.33
7.4.110.0160.00079.33
7.4.100.0100.00579.33
7.4.90.0050.01079.33
7.4.80.0130.00279.33
7.4.70.0120.00379.33
7.4.60.0160.00079.33
7.4.50.0090.00679.33
7.4.40.0100.00579.33
7.4.30.0120.00379.33
7.4.20.0070.00779.33
7.4.10.0100.00579.33
7.4.00.0070.00779.33
7.3.330.0110.00479.33
7.3.320.0080.00679.33
7.3.310.0050.00979.33
7.3.300.0140.00079.33
7.3.290.0040.01179.33
7.3.280.0120.00479.33
7.3.270.0090.00679.33
7.3.260.0100.00779.33
7.3.250.0120.00379.33
7.3.240.0110.00579.33
7.3.230.0110.00479.33
7.3.220.0130.00379.33
7.3.210.0000.01679.33
7.3.200.0100.00779.33
7.3.190.0100.00579.33
7.3.180.0120.00479.33
7.3.170.0120.00679.33
7.3.160.0110.00579.33
7.3.150.0170.00079.33
7.3.140.0060.00979.33
7.3.130.0160.00079.33
7.3.120.0070.00779.33
7.3.110.0130.00379.33
7.3.100.0100.00579.33
7.3.90.0150.00079.33
7.3.80.0090.00679.33
7.3.70.0110.00479.33
7.3.60.0140.00079.33
7.3.50.0100.00579.33
7.3.40.0150.00079.33
7.3.30.0110.00479.33
7.3.20.0080.00879.33
7.3.10.0170.00079.33
7.3.00.0100.00679.33

preferences:
45.86 ms | 401 KiB | 5 Q