3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = array_map(function() { return openssl_random_pseudo_bytes(524288); }, range(1, 500)); $before = microtime(1); array_walk_recursive($_GET, function($item) { return stripslashes($item); }); echo microtime(1) - $before . "\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)
7.1.70.0230.87079.18
7.1.60.0200.93979.19
7.1.50.0330.90178.79
7.0.200.1300.97078.82
5.4.220.0171.18761.48
5.4.210.0331.20061.69
5.4.200.0271.17061.74
5.4.190.0401.24361.76
5.4.180.0301.25061.98
5.4.170.0471.24361.98
5.4.160.0271.24061.61
5.4.150.0371.36361.67
5.4.140.0200.05316.57
5.4.130.0270.05316.56
5.4.120.0230.05316.76
5.4.110.0170.03716.50
5.4.100.0300.03316.50
5.4.90.0200.03316.64
5.4.80.0300.06016.49
5.4.70.0230.04016.62
5.4.60.0200.08016.24
5.4.50.0330.04016.54
5.4.40.0170.05016.58
5.4.30.0230.03716.56
5.4.20.0230.07016.37
5.4.10.0230.07716.56
5.4.00.0230.05315.83
5.3.270.0170.05714.67
5.3.260.0300.06714.76
5.3.250.0270.06314.67
5.3.240.0200.07714.58
5.3.230.0130.05714.66
5.3.220.0330.06714.54
5.3.210.0230.05014.62
5.3.200.0230.03314.63
5.3.190.0170.04714.56
5.3.180.0130.05314.64
5.3.170.0200.05014.61
5.3.160.0270.06714.65
5.3.150.0300.07014.71
5.3.140.0230.07014.84
5.3.130.0270.06314.77
5.3.120.0270.05314.52
5.3.110.0230.04714.73
5.3.100.0230.07714.07
5.3.90.0230.05314.13
5.3.80.0200.04014.10
5.3.70.0270.06713.98
5.3.60.0300.06314.11
5.3.50.0200.04313.92
5.3.40.0230.06314.02
5.3.30.0230.03013.91
5.3.20.0230.07713.68
5.3.10.0200.05013.80
5.3.00.0230.06713.75

preferences:
29.56 ms | 401 KiB | 5 Q