3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; set_error_handler(function($errno, $errstr) { global $i; if (str_contains($errstr, "multi")) { echo "Error on round $i\n"; } }, E_NOTICE); while ($i < 10) { $randomBytes = random_bytes(16); $encoded = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $randomBytes); $i++; }

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.0170.00719.54
8.3.30.0100.01319.02
8.3.20.0140.00721.85
8.3.10.0040.01821.73
8.3.00.0150.00719.09
8.2.170.0090.01218.95
8.2.160.0130.00722.79
8.2.150.0150.00619.15
8.2.140.0070.01320.52
8.2.130.0140.00720.13
8.2.120.0150.00619.41
8.2.110.0170.00319.30
8.2.100.0170.00319.26
8.2.90.0270.00518.68
8.2.80.0260.00318.64
8.2.70.0180.00742.86
8.2.60.0220.00342.86
8.2.50.0210.00442.96
8.2.40.0160.00742.99
8.2.30.0170.00742.96
8.2.20.0190.00642.99
8.2.10.0150.00942.94
8.2.00.0160.00842.96
8.1.270.0190.00622.06
8.1.260.0170.00021.99
8.1.250.0070.00722.19
8.1.240.0120.00618.49
8.1.230.0040.01118.62
8.1.220.0210.00418.49
8.1.210.0210.00518.31
8.1.200.0190.00442.81
8.1.190.0170.00742.73
8.1.180.0200.00542.74
8.1.170.0170.00742.80
8.1.160.0180.00542.67
8.1.150.0180.00542.80
8.1.140.0170.00442.83
8.1.130.0170.00642.68
8.1.120.0170.00642.79
8.1.110.0120.01042.76
8.1.100.0190.00543.03
8.1.90.0150.00942.77
8.1.80.0170.00743.46
8.1.70.0130.01043.14
8.1.60.0150.00742.81
8.1.50.0160.00742.84
8.1.40.0170.00742.86
8.1.30.0200.00442.89
8.1.20.0130.00943.20
8.1.10.0200.00342.85
8.1.00.0200.00342.68
8.0.300.0230.00517.81
8.0.290.0210.00442.43
8.0.280.0210.00442.43
8.0.270.0160.00642.38
8.0.260.0190.00442.43
8.0.250.0180.00642.45
8.0.240.0180.00742.44
8.0.230.0200.00342.46
8.0.220.0210.00342.43
8.0.210.0190.00542.41
8.0.200.0220.00342.41
8.0.190.0170.00742.73
8.0.180.0180.00642.41
8.0.170.0190.00442.33
8.0.160.0170.00642.48
8.0.150.0180.00542.36
8.0.140.0210.00542.34
8.0.130.0180.00742.37
8.0.120.0200.00742.46
8.0.110.0210.00442.33
8.0.100.0210.00542.40
8.0.90.0210.00442.42
8.0.80.0220.00442.35
8.0.70.0170.00542.43
8.0.60.0180.00742.39
8.0.50.0210.00542.43
8.0.30.0160.00742.39
8.0.20.0160.00842.47
8.0.10.0220.00442.45

preferences:
36.4 ms | 403 KiB | 5 Q