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.0070.00718.43
8.3.50.0040.01116.31
8.3.40.0110.00418.70
8.3.30.0060.00918.45
8.3.20.0030.00520.07
8.3.10.0040.00421.78
8.3.00.0050.00319.56
8.2.180.0110.01118.41
8.2.170.0140.00022.96
8.2.160.0090.00619.13
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.27
8.2.120.0070.00026.35
8.2.110.0050.00522.13
8.2.100.0040.00817.84
8.2.90.0000.00919.21
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0060.00318.10
8.2.40.0040.00420.53
8.2.30.0040.00419.24
8.2.20.0050.00218.04
8.2.10.0000.00718.04
8.2.00.0000.00718.05
8.1.280.0090.01225.92
8.1.270.0040.00422.19
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0080.00417.72
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00517.13
8.1.190.0000.00817.11
8.1.180.0070.00018.10
8.1.170.0050.00318.46
8.1.160.0070.00018.96
8.1.150.0030.00518.73
8.1.140.0070.00019.51
8.1.130.0050.00318.72
8.1.120.0040.00417.38
8.1.110.0080.00017.32
8.1.100.0040.00417.40
8.1.90.0000.00817.26
8.1.80.0040.00417.27
8.1.70.0000.01017.37
8.1.60.0040.00417.51
8.1.50.0040.00417.46
8.1.40.0070.00317.30
8.1.30.0080.00017.44
8.1.20.0080.00017.57
8.1.10.0000.00717.51
8.1.00.0050.00217.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00717.11
8.0.260.0030.00316.80
8.0.250.0030.00316.87
8.0.240.0000.00716.75
8.0.230.0040.00416.91
8.0.220.0030.00516.71
8.0.210.0030.00316.73
8.0.200.0040.00416.91
8.0.190.0030.00616.90
8.0.180.0030.00516.75
8.0.170.0030.00316.76
8.0.160.0070.00016.77
8.0.150.0000.00816.78
8.0.140.0070.00016.80
8.0.130.0000.00613.25
8.0.120.0000.00816.80
8.0.110.0040.00416.82
8.0.100.0000.00816.71
8.0.90.0050.00216.64
8.0.80.0110.00616.80
8.0.70.0040.00416.85
8.0.60.0000.00816.77
8.0.50.0040.00416.61
8.0.30.0080.00916.96
8.0.20.0140.01117.40
8.0.10.0040.00416.82
8.0.00.0030.01416.62
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0040.00416.29
7.4.290.0040.00716.43
7.4.280.0090.00016.42
7.4.270.0030.00316.52
7.4.260.0030.00316.46
7.4.250.0060.00316.38
7.4.240.0050.00216.48
7.4.230.0030.00316.27
7.4.220.0130.00716.60
7.4.210.0090.00916.43
7.4.200.0030.00316.40
7.4.160.0140.00316.45
7.4.150.0090.01117.40
7.4.140.0090.00817.86
7.4.130.0100.01316.51
7.4.120.0130.01016.43
7.4.110.0130.00616.65
7.4.100.0150.00416.48
7.4.90.0100.00816.51
7.4.80.0030.01619.39
7.4.70.0130.00316.47
7.4.60.0090.00616.30
7.4.50.0140.00016.39
7.4.40.0160.00016.22
7.4.30.0030.01316.54
7.4.00.0070.00714.59
7.3.330.0000.00513.11
7.3.320.0060.00013.05
7.3.310.0030.00316.26
7.3.300.0040.00416.14
7.3.290.0060.00816.11
7.3.280.0090.00816.13
7.3.270.0030.01317.40
7.3.260.0120.00516.50
7.3.250.0100.00816.20
7.3.240.0130.00916.21
7.3.230.0140.00616.19
7.3.210.0060.01016.19
7.3.200.0120.00316.37
7.3.190.0110.01316.39
7.3.180.0030.01316.10
7.3.170.0120.00616.28
7.3.160.0070.01016.21
7.3.10.0040.01116.57
7.3.00.0030.01016.41
7.2.330.0070.01116.36
7.2.320.0070.01316.64
7.2.310.0030.01316.44
7.2.300.0060.01516.30
7.2.290.0100.00816.37
7.2.130.0030.00716.71
7.2.120.0110.00716.72
7.2.110.0070.01016.84
7.2.100.0120.00016.72
7.2.90.0070.01016.96
7.2.80.0140.00016.71
7.2.70.0060.00916.90
7.2.60.0050.00916.76
7.2.50.0030.00716.66
7.2.40.0090.00616.79
7.2.30.0120.00316.94
7.2.20.0050.00516.79
7.2.10.0080.00416.88
7.2.00.0060.00818.06
7.1.250.0060.00315.55
7.1.200.0060.00615.73
7.1.100.0000.01318.09
7.1.70.0470.01717.22
7.1.60.0820.01335.06
7.1.50.0590.01134.74
7.1.40.0700.00734.34
7.1.30.0780.01832.54
7.1.20.0570.01032.61
7.1.10.0490.01016.67
7.1.00.0360.00714.70
7.0.200.0140.01416.62
7.0.190.0020.01616.36
7.0.180.0120.01015.91
7.0.170.0470.01214.41
7.0.160.0410.00616.09
7.0.150.0170.00316.22
7.0.140.0070.01116.12
7.0.130.0140.01016.30
7.0.120.0140.00316.37
7.0.110.0070.01616.21
7.0.100.0190.00516.37
7.0.90.0500.01314.16
7.0.80.0430.01016.03
7.0.70.0570.00614.35
7.0.60.0080.01315.97
7.0.50.0090.00916.17
7.0.40.0090.01216.46
7.0.30.0110.00716.44
7.0.20.0490.01316.27
7.0.10.0100.02016.29
7.0.00.0470.01614.41

preferences:
47.75 ms | 401 KiB | 5 Q