3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="ála"; for($d=0;$d<strlen($text);$d++) { echo $text[$d] . "<br>"; } $char = 'á'; var_dump(chr($char));

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.00416.50
8.3.50.0070.01420.22
8.3.40.0000.01418.71
8.3.30.0090.00619.29
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.180.0150.00025.92
8.2.170.0110.00422.96
8.2.160.0110.00322.96
8.2.150.0030.00525.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0000.00826.16
8.2.110.0070.01020.31
8.2.100.0030.00917.84
8.2.90.0030.00517.75
8.2.80.0090.00018.77
8.2.70.0040.00417.75
8.2.60.0030.00517.63
8.2.50.0000.00917.98
8.2.40.0000.00818.34
8.2.30.0050.00317.98
8.2.20.0040.00420.45
8.2.10.0040.00418.12
8.2.00.0040.00419.16
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0140.00028.09
8.1.240.0060.00322.14
8.1.230.0070.00421.04
8.1.220.0000.00818.70
8.1.210.0030.00618.77
8.1.200.0050.00517.35
8.1.190.0120.00017.23
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0070.00018.80
8.1.150.0040.00418.55
8.1.140.0040.00417.50
8.1.130.0000.00718.79
8.1.120.0030.00617.43
8.1.110.0050.00317.35
8.1.100.0000.00817.38
8.1.90.0030.00417.48
8.1.80.0000.00717.46
8.1.70.0070.00017.46
8.1.60.0200.00417.53
8.1.50.0190.00317.41
8.1.40.0200.00317.53
8.1.30.0190.00517.53
8.1.20.0160.00317.56
8.1.10.0200.00317.57
8.1.00.0170.00717.52
8.0.300.0040.00419.04
8.0.290.0000.00716.88
8.0.280.0000.00718.45
8.0.270.0000.00816.89
8.0.260.0000.00818.43
8.0.250.0000.00816.96
8.0.240.0030.00316.89
8.0.230.0000.00716.92
8.0.220.0000.00616.95
8.0.210.0000.00716.95
8.0.200.0040.00416.99
8.0.190.0160.00316.91
8.0.180.0150.00516.91
8.0.170.0130.00416.96
8.0.160.0130.00616.98
8.0.150.0130.00516.83
8.0.140.0110.00716.91
8.0.130.0180.00416.88
8.0.120.0120.00916.74
8.0.110.0150.00316.87
8.0.100.0080.01216.89
8.0.90.0130.00716.98
8.0.80.0150.00616.93
8.0.70.0190.00416.85
8.0.60.0200.00016.87
8.0.50.0130.00516.83
8.0.30.0160.00316.75
8.0.20.0170.00316.84
8.0.10.0160.00317.05
7.4.330.0020.00215.55
7.4.320.0070.00016.44
7.4.300.0060.00016.55
7.4.290.0000.00816.36
7.4.280.0210.00016.27
7.4.270.0160.00316.49
7.4.260.0120.00916.38
7.4.250.0150.00616.48
7.4.240.0130.00016.44
7.4.230.0080.00416.38
7.4.220.0120.00416.50
7.4.210.0080.00516.50
7.4.200.0060.00616.33
7.4.190.0070.00416.57
7.4.180.0070.00316.38
7.4.160.0170.00016.53
7.4.150.0050.01116.43
7.4.140.0060.01016.30
7.4.130.0090.00616.40
7.4.120.0110.00616.28
7.4.110.0080.00616.28
7.4.100.0070.01016.30
7.4.90.0080.01116.26
7.4.80.0150.00416.28
7.4.70.0130.00516.29
7.4.60.0160.00316.44
7.4.50.0140.00316.34
7.4.40.0130.00616.21
7.4.30.0160.00316.44
7.4.20.0090.00916.36
7.4.10.0110.00716.36
7.4.00.0140.00516.38

preferences:
62.33 ms | 401 KiB | 5 Q