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.60.0110.00418.18
8.3.50.0100.00316.59
8.3.40.0070.00718.67
8.3.30.0090.00618.45
8.3.20.0080.00020.21
8.3.10.0040.00423.53
8.3.00.0000.00919.49
8.2.180.0070.00718.16
8.2.170.0130.00322.96
8.2.160.0090.00619.13
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00019.27
8.2.120.0000.00826.35
8.2.110.0000.00920.35
8.2.100.0060.00617.91
8.2.90.0030.00619.26
8.2.80.0080.00018.03
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0000.00819.28
8.2.20.0040.00417.89
8.2.10.0070.00018.01
8.2.00.0040.00418.04
8.1.280.0190.00025.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00422.74
8.1.230.0110.00017.63
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0030.00319.00
8.1.150.0040.00418.81
8.1.140.0000.00819.50
8.1.130.0000.00818.81
8.1.120.0000.00717.36
8.1.110.0000.00817.32
8.1.100.0040.00417.34
8.1.90.0000.00717.41
8.1.80.0000.00817.28
8.1.70.0050.00517.41
8.1.60.0030.00517.52
8.1.50.0000.00817.41
8.1.40.0080.00317.38
8.1.30.0000.00717.56
8.1.20.0000.00717.51
8.1.10.0040.00417.54
8.1.00.0060.00317.44
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0030.00617.24
8.0.260.0030.00316.68
8.0.250.0040.00416.88
8.0.240.0000.00716.85
8.0.230.0030.00316.80
8.0.220.0070.00016.83
8.0.210.0040.00416.77
8.0.200.0030.00316.86
8.0.190.0040.00416.89
8.0.180.0040.00416.84
8.0.170.0000.00716.66
8.0.160.0000.00716.75
8.0.150.0030.00316.84
8.0.140.0000.00716.79
8.0.130.0000.00613.23
8.0.120.0060.00316.69
8.0.110.0000.00716.84
8.0.100.0000.00816.78
8.0.90.0020.00516.70
8.0.80.0160.00716.72
8.0.70.0080.00016.79
8.0.60.0070.00016.64
8.0.50.0040.00416.69
8.0.30.0090.00717.07
8.0.20.0080.01317.40
8.0.10.0070.00016.84
8.0.00.0100.00716.62
7.4.330.0050.00015.55
7.4.320.0060.00016.43
7.4.300.0030.00316.55
7.4.290.0070.00416.33
7.4.280.0000.00716.46
7.4.270.0000.00816.45
7.4.260.0070.00016.31
7.4.250.0040.00416.49
7.4.240.0030.00316.44
7.4.230.0000.00716.41
7.4.220.0160.00716.60
7.4.210.0030.01216.41
7.4.200.0030.00316.52
7.4.160.0070.01316.39
7.4.150.0080.01217.40
7.4.140.0100.01017.86
7.4.130.0210.01016.62
7.4.120.0100.01116.51
7.4.110.0110.00616.50
7.4.100.0130.01016.37
7.4.90.0100.00716.61
7.4.80.0070.01019.39
7.4.70.0080.00816.42
7.4.60.0100.00716.50
7.4.50.0040.01216.37
7.4.40.0140.00716.38
7.4.30.0100.00616.51
7.4.00.0100.00714.80
7.3.330.0050.00012.92
7.3.320.0040.00413.07
7.3.310.0040.00415.97
7.3.300.0060.00015.98
7.3.290.0070.00516.13
7.3.280.0090.00816.13
7.3.270.0030.01517.40
7.3.260.0100.00816.07
7.3.250.0150.00516.15
7.3.240.0120.00716.20
7.3.230.0150.00316.20
7.3.210.0060.01016.48
7.3.200.0040.01216.16
7.3.190.0030.01516.42
7.3.180.0090.01316.37
7.3.170.0000.01516.18
7.3.160.0060.00916.37
7.2.330.0120.00616.56
7.2.320.0100.01116.60
7.2.310.0120.00616.74
7.2.300.0040.01116.25
7.2.290.0110.00516.53
7.2.120.0000.00916.51
7.2.110.0080.00316.40
7.2.100.0000.01616.41
7.2.90.0000.01416.48
7.2.80.0040.00716.08
7.2.70.0110.00316.56
7.2.60.0070.00716.72
7.2.50.0060.00616.54
7.2.40.0080.00316.83
7.2.30.0050.00516.89
7.2.20.0040.01116.82
7.2.10.0040.00816.88
7.2.00.0080.00518.08
7.1.240.0040.00815.56
7.1.230.0030.01015.54
7.1.220.0120.00015.47
7.1.210.0030.00915.79
7.1.200.0080.00315.72
7.1.190.0040.00815.73
7.1.180.0130.00315.86
7.1.170.0040.00815.56
7.1.160.0030.01315.48
7.1.150.0040.00815.67
7.1.140.0120.00315.85
7.1.130.0060.00615.81
7.1.120.0030.01015.89
7.1.110.0040.01215.51
7.1.100.0100.00316.74
7.1.90.0110.00415.89
7.1.80.0040.01115.82
7.1.70.0080.00716.52
7.1.60.0190.00925.34
7.1.50.0220.00725.16
7.1.40.0230.01025.02
7.1.30.0170.01425.06
7.1.20.0200.00525.06
7.1.10.0070.00816.20
7.1.00.0030.01216.12
7.0.320.0060.00615.28
7.0.310.0000.00815.50
7.0.300.0040.00915.22
7.0.290.0070.00715.30
7.0.280.0080.00815.27
7.0.270.0060.00615.32
7.0.260.0040.00415.50
7.0.250.0060.00615.54
7.0.240.0120.00315.29
7.0.230.0040.01115.16
7.0.220.0040.00715.09
7.0.210.0110.00015.58
7.0.200.0050.00815.89
7.0.190.0060.01015.94
7.0.180.0080.00915.53
7.0.170.0070.00515.76
7.0.160.0050.01115.77
7.0.150.0050.00815.86
7.0.140.0050.01215.73
7.0.130.0060.00815.82
7.0.120.0110.00615.97
7.0.110.0090.00615.79
7.0.100.0090.00815.66
7.0.90.0090.00515.72
7.0.80.0070.00915.77
7.0.70.0060.00915.69
7.0.60.0080.00815.57
7.0.50.0050.00915.92
7.0.40.0080.00714.84
7.0.30.0050.00814.82
7.0.20.0050.01114.85
7.0.10.0030.01114.82
7.0.00.0060.01014.73
5.6.380.0030.00913.93

preferences:
86.62 ms | 401 KiB | 5 Q