3v4l.org

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

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.0040.01416.36
8.3.50.0100.01020.03
8.3.40.0110.00418.89
8.3.30.0030.01219.39
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0150.00025.92
8.2.170.0110.01119.03
8.2.160.0070.01022.96
8.2.150.0080.00025.66
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0100.00022.25
8.2.100.0000.01217.93
8.2.90.0030.00519.25
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0030.00518.34
8.2.30.0070.00018.00
8.2.20.0000.00720.48
8.2.10.0030.00618.10
8.2.00.0070.00019.20
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.01428.09
8.1.240.0030.00623.98
8.1.230.0070.00419.01
8.1.220.0050.00317.77
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0090.00017.11
8.1.180.0030.00618.10
8.1.170.0050.00318.39
8.1.160.0040.00418.95
8.1.150.0040.00418.62
8.1.140.0050.00317.42
8.1.130.0060.00318.95
8.1.120.0030.00317.52
8.1.110.0000.00817.50
8.1.100.0060.00317.54
8.1.90.0030.00517.48
8.1.80.0030.00317.55
8.1.70.0080.00017.54
8.1.60.0200.00517.60
8.1.50.0140.01017.42
8.1.40.0160.00917.40
8.1.30.0140.00917.64
8.1.20.0160.00217.71
8.1.10.0140.00917.59
8.1.00.0180.00617.56
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0030.00318.50
8.0.270.0050.00216.79
8.0.260.0030.00318.55
8.0.250.0000.00816.95
8.0.240.0060.00017.01
8.0.230.0030.00316.91
8.0.220.0060.00016.95
8.0.210.0040.00416.90
8.0.200.0030.00316.88
8.0.190.0120.00816.85
8.0.180.0140.00616.88
8.0.170.0180.00016.97
8.0.160.0160.00316.95
8.0.150.0110.00716.80
8.0.140.0110.00716.77
8.0.130.0130.00516.75
8.0.120.0110.00916.87
8.0.110.0140.00516.92
8.0.100.0170.00316.86
8.0.90.0160.00316.95
8.0.80.0190.00016.99
8.0.70.0160.00616.96
8.0.60.0160.00716.88
8.0.50.0110.00716.73
8.0.30.0100.01016.80
8.0.20.0200.00016.86
8.0.10.0160.00316.85
7.4.330.0030.00315.55
7.4.320.0070.00016.52
7.4.300.0000.00616.50
7.4.290.0080.00416.43
7.4.280.0180.00416.59
7.4.270.0180.00016.44
7.4.260.0140.00716.48
7.4.250.0180.00416.57
7.4.240.0140.00016.55
7.4.230.0080.00416.37
7.4.220.0100.00616.58
7.4.210.0110.00416.50
7.4.200.0150.00016.38
7.4.190.0120.00016.59
7.4.180.0030.00816.53
7.4.160.0150.00416.61
7.4.150.0120.00616.42
7.4.140.0100.00816.34
7.4.130.0110.00416.52
7.4.120.0160.00316.33
7.4.110.0110.00316.50
7.4.100.0080.00816.58
7.4.90.0140.00416.49
7.4.80.0160.00316.49
7.4.70.0190.00016.46
7.4.60.0100.00716.48
7.4.50.0130.00316.26
7.4.40.0130.00516.39
7.4.30.0090.00916.36
7.4.20.0140.00416.43
7.4.10.0150.00416.46
7.4.00.0110.00616.34

preferences:
55.56 ms | 401 KiB | 5 Q