3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row["height"] = '(163 cm)'; $string= $row['height']; $pos1 = strpos($string, "("); $pos2 = strpos($string, "cm", $pos1); $text = substr($string,$pos1+1,$pos2-2+$pos1); echo $text; ?>

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.4.20.0070.01417.77
8.4.10.0130.00719.59
8.3.150.0190.00019.04
8.3.140.0090.00018.87
8.3.130.0090.00316.49
8.3.120.0120.00618.79
8.3.110.0070.00020.94
8.3.100.0060.00324.06
8.3.90.0160.00326.77
8.3.80.0090.00019.36
8.3.70.0070.01116.63
8.3.60.0040.01118.31
8.3.50.0090.00924.52
8.3.40.0000.01421.83
8.3.30.0030.01018.67
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0030.00526.16
8.2.270.0130.00616.75
8.2.260.0070.00716.50
8.2.250.0000.00818.47
8.2.240.0130.00318.98
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0060.00318.88
8.2.190.0140.00316.58
8.2.180.0140.00325.92
8.2.170.0120.00318.91
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0040.00420.04
8.2.110.0030.00620.39
8.2.100.0040.00717.84
8.2.90.0050.00517.75
8.2.80.0000.01218.63
8.2.70.0090.00017.75
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0000.00718.28
8.2.30.0000.00818.12
8.2.20.0040.00418.02
8.2.10.0000.00719.39
8.2.00.0040.00419.24
8.1.310.0070.01116.42
8.1.300.0110.00719.90
8.1.290.0070.00430.84
8.1.280.0140.00025.92
8.1.270.0040.00421.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00023.71
8.1.230.0090.00322.49
8.1.220.0040.00417.80
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00418.85
8.1.150.0030.00518.83
8.1.140.0000.00718.83
8.1.130.0000.00719.95
8.1.120.0030.00517.39
8.1.110.0060.00317.40
8.1.100.0040.00417.39
8.1.90.0000.00717.29
8.1.80.0000.00917.36
8.1.70.0030.00317.44
8.1.60.0060.00317.53
8.1.50.0000.00817.45
8.1.40.0000.00817.48
8.1.30.0040.00417.61
8.1.20.0060.00317.61
8.1.10.0080.00017.57
8.1.00.0000.00817.52
8.0.300.0020.00518.81
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0070.00017.91
8.0.260.0000.00618.56
8.0.250.0040.00416.86
8.0.240.0030.00316.99
8.0.230.0030.00316.79
8.0.220.0000.00716.82
8.0.210.0030.00316.71
8.0.200.0000.00616.90
8.0.190.0000.00716.84
8.0.180.0000.00716.82
8.0.170.0030.00516.73
8.0.160.0040.00416.84
8.0.150.0030.00316.85
8.0.140.0070.00016.70
8.0.130.0060.00013.26
8.0.120.0000.00716.85
8.0.110.0060.00316.72
8.0.100.0070.00016.63
8.0.90.0030.00316.71
8.0.80.0110.00916.79
8.0.70.0030.00516.68
8.0.60.0050.00316.70
8.0.50.0020.00516.60
8.0.30.0120.00916.98
8.0.20.0080.01217.23
8.0.10.0040.00416.80
8.0.00.0040.01816.76
7.4.330.0000.00515.55
7.4.320.0000.00616.33
7.4.300.0030.00316.43
7.4.290.0050.00216.40
7.4.280.0000.00816.42
7.4.270.0000.00716.54
7.4.260.0040.00416.28
7.4.250.0030.00316.41
7.4.240.0030.00316.49
7.4.230.0030.00316.55
7.4.220.0040.00316.52
7.4.210.0030.01016.50
7.4.200.0000.00716.57
7.4.130.0090.01216.37
7.4.120.0120.00616.37
7.4.110.0060.01216.43
7.4.100.0150.00316.16
7.4.90.0070.01016.27
7.4.80.0100.00716.30
7.4.70.0110.01116.48
7.4.60.0070.01116.32
7.4.50.0160.00316.35
7.4.40.0140.00316.18
7.4.30.0080.00816.35
7.4.20.0050.01316.24
7.4.10.0110.00616.54
7.4.00.0150.00416.19
7.3.330.0030.00316.24
7.3.320.0020.00313.05
7.3.310.0000.00716.13
7.3.300.0030.00316.32
7.3.290.0070.00916.31
7.3.260.0110.01116.77
7.3.250.0060.01016.48
7.3.240.0030.01416.28
7.3.230.0120.00616.45
7.3.220.0090.00616.26
7.3.210.0090.00916.38
7.3.200.0070.01116.19
7.3.190.0040.01416.52
7.3.180.0100.00716.48
7.3.170.0090.00916.20
7.3.160.0160.00016.04
7.3.150.0070.01116.32
7.3.140.0090.00616.34
7.3.130.0090.00816.63
7.3.120.0150.00916.19
7.3.110.0030.01716.39
7.3.100.0070.01116.07
7.3.90.0100.00716.27
7.3.80.0140.00316.13
7.3.70.0140.00716.34
7.3.60.0070.01116.18
7.3.50.0110.00616.20
7.3.40.0070.01016.26
7.3.30.0080.01016.37
7.3.20.0030.01416.48
7.3.10.0140.00316.32
7.3.00.0000.02016.11

preferences:
73.05 ms | 403 KiB | 5 Q