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(json_encode($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.70.0100.00316.58
8.3.60.0030.01316.63
8.3.50.0030.01220.06
8.3.40.0140.00318.67
8.3.30.0110.00419.09
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.180.0100.01025.92
8.2.170.0000.01518.95
8.2.160.0060.01222.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0070.00026.16
8.2.110.0110.01121.04
8.2.100.0090.00317.91
8.2.90.0040.00417.75
8.2.80.0000.00818.92
8.2.70.0090.00017.75
8.2.60.0050.00317.38
8.2.50.0030.00617.98
8.2.40.0000.00918.34
8.2.30.0080.00018.23
8.2.20.0040.00420.31
8.2.10.0000.00818.00
8.2.00.0000.00819.19
8.1.280.0070.01025.92
8.1.270.0070.00023.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0030.00621.30
8.1.230.0000.01120.89
8.1.220.0000.00818.68
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00717.00
8.1.180.0000.00818.10
8.1.170.0000.00717.62
8.1.160.0000.00818.82
8.1.150.0050.00318.63
8.1.140.0040.00417.38
8.1.130.0030.00318.90
8.1.120.0030.00617.47
8.1.110.0030.00617.42
8.1.100.0000.00817.45
8.1.90.0040.00417.41
8.1.80.0000.00717.45
8.1.70.0000.00717.48
8.1.60.0240.00017.58
8.1.50.0190.00417.49
8.1.40.0190.00817.49
8.1.30.0170.01017.62
8.1.20.0160.00517.56
8.1.10.0140.00917.40
8.1.00.0200.00417.36
8.0.300.0040.00418.91
8.0.290.0000.00716.75
8.0.280.0070.00018.45
8.0.270.0000.00716.81
8.0.260.0040.00418.52
8.0.250.0060.00316.84
8.0.240.0060.00016.97
8.0.230.0000.00716.99
8.0.220.0040.00416.81
8.0.210.0070.00016.78
8.0.200.0030.00316.87
8.0.190.0150.00416.89
8.0.180.0090.00916.91
8.0.170.0110.00716.76
8.0.160.0110.00816.73
8.0.150.0150.00416.80
8.0.140.0180.00016.78
8.0.130.0180.00016.67
8.0.120.0170.00316.89
8.0.110.0120.00616.83
8.0.100.0190.00016.76
8.0.90.0190.00016.76
8.0.80.0210.00016.89
8.0.70.0160.00616.84
8.0.60.0190.00016.83
8.0.50.0110.00816.82
8.0.30.0110.00716.88
8.0.20.0160.00416.81
8.0.10.0190.00016.93
7.4.330.0000.00515.55
7.4.320.0060.00016.40
7.4.300.0000.00616.57
7.4.290.0040.00416.35
7.4.280.0170.00516.36
7.4.270.0130.00516.31
7.4.260.0190.00316.47
7.4.250.0190.00316.32
7.4.240.0100.00316.34
7.4.230.0060.00616.54
7.4.220.0160.00016.53
7.4.210.0030.01216.37
7.4.200.0090.00616.41
7.4.190.0120.00016.46
7.4.180.0060.00316.35
7.4.160.0150.00216.55
7.4.150.0160.00316.43
7.4.140.0110.00616.32
7.4.130.0080.00816.46
7.4.120.0190.00016.45
7.4.110.0140.00016.43
7.4.100.0060.01116.28
7.4.90.0160.00316.37
7.4.80.0150.00416.41
7.4.70.0180.00016.42
7.4.60.0110.00816.45
7.4.50.0130.00316.21
7.4.40.0130.00616.34
7.4.30.0150.00416.30
7.4.20.0190.00016.39
7.4.10.0110.00716.45
7.4.00.0170.00016.39

preferences:
58.45 ms | 400 KiB | 5 Q