3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = 'Inspecteur Gadget. Titre original : Inspector Gadget Origine'; $var = 'gadget'; $pos = 1; while($pos > 0) { $pos = stripos($utf8string, $var); echo substr($utf8string, $pos, strlen($var)); }

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.0250.00318.54
8.3.30.0230.00718.92
8.3.20.0030.00920.21
8.3.10.0060.00622.07
8.3.00.0060.00622.41
8.2.170.0170.01022.96
8.2.160.0190.01018.72
8.2.150.0120.00024.18
8.2.140.0030.00924.66
8.2.130.0240.00626.16
8.2.120.0090.00317.75
8.2.110.0100.00722.16
8.2.100.0040.01417.71
8.2.90.0110.00019.09
8.2.80.0070.00418.05
8.2.70.0060.00917.50
8.2.60.0030.00717.93
8.2.50.0100.00018.07
8.2.40.0060.00318.28
8.2.30.0070.00318.20
8.2.20.0030.00917.69
8.2.10.0040.00717.75
8.2.00.0060.00617.63
8.1.270.0040.00822.11
8.1.260.0090.00326.35
8.1.250.0100.00328.09
8.1.240.0040.01120.96
8.1.230.0070.01118.93
8.1.220.0070.00417.77
8.1.210.0030.00718.77
8.1.200.0030.00917.23
8.1.190.0030.00817.38
8.1.180.0030.00718.59
8.1.170.0100.00318.48
8.1.160.0100.00022.08
8.1.150.0000.01018.64
8.1.140.0040.00717.37
8.1.130.0070.00317.80
8.1.120.0100.00017.51
8.1.110.0080.00317.46
8.1.100.0030.00717.49
8.1.90.0070.00317.45
8.1.80.0000.01017.44
8.1.70.0030.00617.43
8.1.60.0110.00017.49
8.1.50.0090.00317.56
8.1.40.0060.00617.48
8.1.30.0030.00717.59
8.1.20.0000.01017.66
8.1.10.0000.00917.62
8.1.00.0030.00717.49
8.0.300.0040.00718.77
8.0.290.0070.00317.05
8.0.280.0090.00018.39
8.0.270.0030.00617.20
8.0.260.0050.00516.65
8.0.250.0100.00016.88
8.0.240.0040.00516.81
8.0.230.0030.00716.83
8.0.220.0070.00316.67
8.0.210.0000.00916.70
8.0.200.0030.00616.82
8.0.190.0070.00316.74
8.0.180.0030.00816.84
8.0.170.0060.00316.79
8.0.160.0030.00716.71
8.0.150.0000.01116.75
8.0.140.0000.01016.63
8.0.130.0110.00013.24
8.0.120.0030.00716.77
8.0.110.0030.00616.70
8.0.100.0060.00316.58
8.0.90.0070.00316.53
8.0.80.0160.02516.64
8.0.70.0000.01016.75
8.0.60.0030.00716.62
8.0.50.0070.00316.66
8.0.30.0380.01916.95
8.0.20.0270.02017.40
8.0.10.0000.01016.80
8.0.00.0300.02216.69
7.4.330.0080.00015.00
7.4.320.0030.00616.27
7.4.300.0040.00416.32
7.4.290.0030.00716.44
7.4.280.0000.01116.40
7.4.270.0030.00616.27
7.4.260.0060.00316.45
7.4.250.0070.00416.39
7.4.240.0040.00716.29
7.4.230.0030.00616.45
7.4.220.0190.01316.29
7.4.210.0090.02116.46
7.4.200.0030.00616.21
7.4.190.0070.00316.13
7.4.160.0190.02216.56
7.4.150.0240.01817.40
7.4.140.0240.01917.86
7.4.130.0270.02116.39
7.4.120.0300.02116.52
7.4.110.0250.01616.34
7.4.100.0400.01216.55
7.4.90.0220.02216.30
7.4.80.0190.02119.39
7.4.70.0220.01116.50
7.4.60.0190.01616.36
7.4.50.0110.00416.30
7.4.40.0030.01622.77
7.4.30.0320.01716.34
7.4.00.0030.01914.85
7.3.330.0060.00313.12
7.3.320.0000.00913.12
7.3.310.0030.00716.09
7.3.300.0060.00316.13
7.3.290.0100.02516.08
7.3.280.0090.02116.21
7.3.270.0230.02017.40
7.3.260.0260.01416.11
7.3.250.0300.01916.24
7.3.240.0520.01516.47
7.3.230.0250.01716.39
7.3.210.0220.01816.21
7.3.200.0160.01619.39
7.3.190.0220.01816.10
7.3.180.0190.01916.27
7.3.170.0230.01616.36
7.3.160.0150.02216.39
7.3.120.0130.01614.71
7.2.330.0290.01316.39
7.2.320.0300.02416.57
7.2.310.0180.01716.57
7.2.300.0210.01416.57
7.2.290.0150.01816.67
7.2.60.0160.01016.64
7.2.00.0070.01719.51
7.1.200.0090.01215.45
7.1.100.0070.01018.19
7.1.70.0000.01117.18
7.1.60.0140.01819.82
7.1.50.0240.01016.86
7.0.200.0070.00716.84

preferences:
41.57 ms | 400 KiB | 5 Q