3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '£'; echo "string length is " . strlen($string) . "\n"; echo "but you probably wanted " . mb_strlen($string) . "\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)
8.3.60.0120.00616.75
8.3.50.0030.01419.91
8.3.40.0070.01420.37
8.3.30.0030.01018.84
8.3.20.0070.00024.18
8.3.10.0120.00024.66
8.3.00.0070.00026.16
8.2.180.0160.00025.92
8.2.170.0110.00418.95
8.2.160.0030.01222.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0100.00022.30
8.2.100.0030.01217.91
8.2.90.0040.00419.23
8.2.80.0040.00418.03
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.15
8.2.30.0070.00018.04
8.2.20.0020.00520.43
8.2.10.0000.00817.95
8.2.00.0050.00319.05
8.1.280.0130.00725.92
8.1.270.0060.00323.99
8.1.260.0100.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.92
8.1.230.0070.00422.20
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0030.00718.10
8.1.170.0060.00318.29
8.1.160.0040.00418.88
8.1.150.0070.00018.55
8.1.140.0040.00417.55
8.1.130.0070.00018.89
8.1.120.0040.00417.36
8.1.110.0070.00017.44
8.1.100.0080.00017.34
8.1.90.0040.00417.41
8.1.80.0060.00317.43
8.1.70.0070.00017.43
8.1.60.0040.00417.65
8.1.50.0140.00517.63
8.1.40.0180.00017.58
8.1.30.0140.00317.63
8.1.20.0100.00717.69
8.1.10.0090.00917.56
8.1.00.0110.00617.54
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0080.00020.17
8.0.270.0000.00718.11
8.0.260.0030.00318.49
8.0.250.0030.00317.01
8.0.240.0080.00017.02
8.0.230.0080.00016.96
8.0.220.0070.00016.91
8.0.210.0030.00316.87
8.0.200.0000.00816.99
8.0.190.0070.00716.87
8.0.180.0060.01016.99
8.0.170.0050.01016.95
8.0.160.0130.00416.88
8.0.150.0040.01116.89
8.0.140.0110.00516.85
8.0.130.0070.00716.86
8.0.120.0040.01116.82
8.0.110.0140.00016.84
8.0.100.0110.00416.78
8.0.90.0130.00216.90
8.0.80.0140.00016.82
8.0.70.0150.00016.71
8.0.60.0080.00316.82
8.0.50.0140.00016.73
8.0.30.0150.00016.81
8.0.20.0060.00916.76
8.0.10.0110.00316.95
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0060.00016.33
7.4.290.0140.00316.46
7.4.280.0080.00816.41
7.4.270.0090.00616.38
7.4.260.0140.00416.53
7.4.250.0120.00516.41
7.4.240.0110.00516.40
7.4.230.0100.00316.45
7.4.220.0090.00516.40
7.4.210.0090.00616.40
7.4.200.0140.00016.50
7.4.190.0100.00316.46
7.4.180.0040.00816.50
7.4.160.0120.00316.38
7.4.150.0070.00816.43
7.4.140.0100.00416.52
7.4.130.0090.00316.33
7.4.120.0080.00816.47
7.4.110.0100.00316.29
7.4.100.0130.00316.46
7.4.90.0090.00616.25
7.4.80.0100.00516.38
7.4.70.0080.00816.46
7.4.60.0140.00016.52
7.4.50.0110.00416.14
7.4.40.0130.00016.30
7.4.30.0130.00016.52
7.4.20.0110.00316.52
7.4.10.0090.00416.45
7.4.00.0100.00316.45

preferences:
32.33 ms | 400 KiB | 5 Q