3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'image-380x409.jpg'; echo '<pre>'; var_dump( strpos('.', $string)); echo '</pre>'; //$string = substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] );

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.40.0110.00318.67
8.3.30.0110.00418.51
8.3.20.0040.00420.22
8.3.10.0070.00021.66
8.3.00.0040.00419.55
8.2.170.0100.00322.96
8.2.160.0070.01018.89
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0040.00419.02
8.2.120.0040.00426.35
8.2.110.0070.00421.85
8.2.100.0120.00017.91
8.2.90.0030.00619.25
8.2.80.0000.00917.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0050.00220.61
8.2.30.0000.00819.18
8.2.20.0000.00817.87
8.2.10.0000.00718.05
8.2.00.0070.00017.86
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00820.77
8.1.230.0110.00017.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00318.54
8.1.160.0000.00719.00
8.1.150.0040.00418.86
8.1.140.0070.00019.42
8.1.130.0030.00318.82
8.1.120.0030.00517.29
8.1.110.0060.00317.23
8.1.100.0040.00417.40
8.1.90.0000.00817.36
8.1.80.0000.00817.30
8.1.70.0040.00717.45
8.1.60.0000.00817.48
8.1.50.0080.00017.45
8.1.40.0030.00917.45
8.1.30.0000.00817.52
8.1.20.0040.00417.48
8.1.10.0080.00017.41
8.1.00.0050.00217.27
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0040.00418.34
8.0.270.0030.00517.28
8.0.260.0070.00016.74
8.0.250.0060.00016.91
8.0.240.0000.00716.84
8.0.230.0040.00416.88
8.0.220.0030.00316.71
8.0.210.0000.00716.79
8.0.200.0030.00316.90
8.0.190.0030.00516.77
8.0.180.0030.00516.75
8.0.170.0050.00316.74
8.0.160.0080.00016.80
8.0.150.0030.00316.63
8.0.140.0070.00016.74
8.0.130.0030.00313.23
8.0.120.0050.00216.68
8.0.110.0030.00316.69
8.0.100.0000.00716.81
8.0.90.0070.00016.71
8.0.80.0060.00916.79
8.0.70.0040.00416.91
8.0.60.0070.00016.70
8.0.50.0050.00216.77
8.0.30.0060.01317.02
8.0.20.0150.01217.40
8.0.10.0040.00416.84
8.0.00.0060.01216.80
7.4.330.0050.00015.55
7.4.320.0050.00216.54
7.4.300.0000.00616.55
7.4.290.0040.00416.47
7.4.280.0080.00016.34
7.4.270.0030.00316.54
7.4.260.0030.00316.36
7.4.250.0030.00616.49
7.4.240.0040.00416.39
7.4.230.0030.00316.33
7.4.220.0090.01016.61
7.4.210.0070.00716.55
7.4.200.0040.00416.47
7.4.160.0060.00916.43
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0150.00916.39
7.4.120.0110.01016.36
7.4.110.0130.00716.38
7.4.100.0100.00816.51
7.4.90.0040.01516.32
7.4.80.0150.01119.39
7.4.70.0030.01216.42
7.4.60.0060.00916.43
7.4.50.0100.00716.38
7.4.40.0120.00316.45
7.4.30.0090.01216.64
7.4.00.0130.00314.64
7.3.330.0000.00513.10
7.3.320.0030.00312.89
7.3.310.0030.00316.11
7.3.300.0030.00316.11
7.3.290.0030.01216.11
7.3.280.0100.00716.12
7.3.270.0060.01217.40
7.3.260.0130.00516.22
7.3.250.0110.00916.36
7.3.240.0110.00616.19
7.3.230.0090.00916.43
7.3.210.0070.01116.09
7.3.200.0030.01316.51
7.3.190.0120.00416.18
7.3.180.0120.00316.43
7.3.170.0150.00016.09
7.3.160.0090.00616.25
7.2.330.0110.00916.39
7.2.320.0160.00616.62
7.2.310.0120.00416.55
7.2.300.0070.01016.54
7.2.290.0070.01016.58
7.2.60.0040.00716.43
7.2.00.0070.00719.35
7.1.200.0070.00715.77
7.1.100.0070.00318.09
7.1.70.0040.01616.89
7.1.60.0240.01035.05
7.1.50.0210.01734.75
7.1.40.0400.00734.27
7.1.30.0360.01334.41
7.1.20.0210.02534.57
7.1.10.0030.01716.42
7.1.00.0100.01316.67
7.0.200.0080.01116.64
7.0.190.0090.00616.51
7.0.180.0070.01316.05
7.0.170.0070.01316.09
7.0.160.0110.01016.07
7.0.150.0110.00916.38
7.0.140.0110.01516.14
7.0.130.0100.00916.33
7.0.120.0060.01716.43
7.0.110.0080.00816.43
7.0.100.0130.00816.11
7.0.90.0060.01616.11
7.0.80.0090.01216.11
7.0.70.0110.01216.20
7.0.60.0030.01516.04
7.0.50.0030.01216.17
7.0.40.0030.01716.36
7.0.30.0110.00916.30
7.0.20.0100.01316.11
7.0.10.0060.01516.29
7.0.00.0090.01216.09

preferences:
34.44 ms | 400 KiB | 5 Q