3v4l.org

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

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.0140.00718.18
8.3.50.0110.00621.93
8.3.40.0070.00718.70
8.3.30.0000.01418.96
8.3.20.0060.00320.13
8.3.10.0050.00321.92
8.3.00.0080.00022.45
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0090.00618.67
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.13
8.2.110.0090.00022.13
8.2.100.0050.00519.12
8.2.90.0000.00719.28
8.2.80.0050.00318.03
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0000.00818.17
8.2.30.0040.00417.98
8.2.20.0070.00017.70
8.2.10.0040.00417.59
8.2.00.0110.00017.64
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.83
8.1.230.0030.00719.15
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00817.23
8.1.190.0040.00417.53
8.1.180.0080.00018.65
8.1.170.0000.00918.51
8.1.160.0040.00422.04
8.1.150.0000.00718.50
8.1.140.0000.00717.43
8.1.130.0040.00417.86
8.1.120.0030.00517.43
8.1.110.0000.00717.41
8.1.100.0060.00317.29
8.1.90.0000.00717.29
8.1.80.0050.00317.40
8.1.70.0050.00317.29
8.1.60.0050.00517.53
8.1.50.0080.00017.36
8.1.40.0100.00017.35
8.1.30.0050.00317.56
8.1.20.0050.00317.43
8.1.10.0040.00417.52
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0000.00718.48
8.0.270.0030.00517.15
8.0.260.0000.00616.72
8.0.250.0030.00316.92
8.0.240.0030.00316.96
8.0.230.0070.00016.88
8.0.220.0000.00716.84
8.0.210.0030.00416.71
8.0.200.0030.00516.78
8.0.190.0080.00016.77
8.0.180.0030.00316.79
8.0.170.0050.00316.85
8.0.160.0040.00416.75
8.0.150.0000.00816.89
8.0.140.0030.00316.80
8.0.130.0000.00613.23
8.0.120.0000.00816.69
8.0.110.0000.00716.71
8.0.100.0050.00216.86
8.0.90.0030.00316.71
8.0.80.0120.00616.81
8.0.70.0070.00016.64
8.0.60.0050.00316.68
8.0.50.0040.00416.65
8.0.30.0090.01116.87
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0090.01316.75
7.4.330.0000.00515.00
7.4.320.0000.00616.55
7.4.300.0030.00316.50
7.4.290.0040.00416.54
7.4.280.0070.00016.52
7.4.270.0000.00716.58
7.4.260.0040.00416.56
7.4.250.0040.00416.47
7.4.240.0050.00216.63
7.4.230.0000.00716.61
7.4.220.0120.00616.66
7.4.210.0090.00716.59
7.4.200.0030.00316.39
7.4.190.0070.00016.46
7.4.160.0130.00316.54
7.4.150.0070.01117.40
7.4.140.0070.01017.86
7.4.130.0080.01216.54
7.4.120.0090.00816.51
7.4.110.0120.00416.46
7.4.100.0100.01316.47
7.4.90.0080.00916.54
7.4.80.0000.01719.39
7.4.70.0060.01316.50
7.4.60.0160.00016.38
7.4.50.0040.00416.49
7.4.40.0030.01322.77
7.4.30.0140.00316.59
7.4.00.0030.01214.80
7.3.330.0000.00513.13
7.3.320.0000.00513.03
7.3.310.0080.00016.24
7.3.300.0000.00716.30
7.3.290.0040.01116.21
7.3.280.0130.00716.13
7.3.270.0090.00917.40
7.3.260.0070.01116.36
7.3.250.0100.00816.25
7.3.240.0070.01016.41
7.3.230.0060.01016.39
7.3.210.0030.01416.52
7.3.200.0080.00819.39
7.3.190.0110.01116.40
7.3.180.0100.00616.29
7.3.170.0070.00716.51
7.3.160.0090.00916.18
7.3.120.0030.01414.96
7.3.10.0090.00916.62
7.3.00.0100.00716.55
7.2.330.0120.00916.32
7.2.320.0120.01016.63
7.2.310.0040.01816.40
7.2.300.0070.01016.68
7.2.290.0060.00916.67
7.2.130.0060.00616.77
7.2.120.0040.00816.61
7.2.110.0220.01116.79
7.2.100.0070.01416.64
7.2.90.0160.00316.59
7.2.80.0040.01516.96
7.2.70.0120.00416.54
7.2.60.0040.01416.80
7.2.50.0040.01616.84
7.2.40.0140.00516.91
7.2.30.0170.00916.54
7.2.20.0140.01016.70
7.2.10.0060.01216.70
7.2.00.0030.01218.15
7.1.250.0060.01215.73
7.1.240.0130.00815.64
7.1.230.0120.00615.71
7.1.220.0060.01215.87
7.1.210.0100.00615.63
7.1.200.0070.00815.77
7.1.190.0030.01415.82
7.1.180.0100.00615.38
7.1.170.0080.00815.54
7.1.160.0200.00815.84
7.1.150.0110.00615.77
7.1.140.0080.01115.71
7.1.130.0120.00315.91
7.1.120.0100.00315.76
7.1.110.0160.00315.55
7.1.100.0110.00817.01
7.1.90.0000.01315.61
7.1.80.0110.00815.85
7.1.70.0030.00916.38
7.1.60.0080.01317.79
7.1.50.0060.01416.37
7.1.40.0050.00915.66
7.1.30.0080.00815.52
7.1.20.0000.01015.79
7.1.10.0030.01315.44
7.1.00.0030.04419.03
7.0.330.0180.00015.37
7.0.320.0070.00715.34
7.0.310.0040.00815.23
7.0.300.0000.01415.50
7.0.290.0000.01315.23
7.0.280.0030.01015.01
7.0.270.0110.00815.13
7.0.260.0060.00615.12
7.0.250.0030.00915.16
7.0.240.0060.00915.39
7.0.230.0060.00615.23
7.0.220.0060.00615.36
7.0.210.0120.00315.16
7.0.200.0080.00615.92
7.0.190.0060.00615.10
7.0.180.0080.00415.40
7.0.170.0120.00315.33
7.0.160.0000.00915.22
7.0.150.0000.01314.93
7.0.140.0050.04018.64
7.0.130.0030.01015.18
7.0.120.0100.00315.28
7.0.110.0080.00815.20
7.0.100.0050.00315.27
7.0.90.0000.01315.31
7.0.80.0150.00015.43
7.0.70.0030.00715.30
7.0.60.0070.04517.50
7.0.50.0050.02716.65
7.0.40.0030.03116.78
7.0.30.0180.03816.72
7.0.20.0140.03016.76
7.0.10.0170.03016.80
7.0.00.0100.02516.79
5.6.380.0130.00314.13
5.6.370.0060.00614.41
5.6.360.0040.00814.26
5.6.350.0000.01814.43
5.6.340.0070.00713.88
5.6.330.0040.00814.48
5.6.320.0030.01014.32
5.6.310.0140.00014.25
5.6.300.0000.01114.50
5.6.290.0050.00514.44
5.6.280.0030.04117.76
5.6.270.0070.00714.29
5.6.260.0070.00313.96
5.6.250.0060.00613.93
5.6.240.0080.00414.19
5.6.230.0120.00314.28
5.6.220.0040.00414.32
5.6.210.0050.04517.56
5.6.200.0140.03516.07
5.6.190.0090.02817.43
5.6.180.2160.02117.28
5.6.170.0160.04917.39
5.6.160.0050.05217.38
5.6.150.0100.02816.20
5.6.140.0070.02116.24
5.6.130.0110.02016.17
5.6.120.0070.02517.72
5.6.110.0070.04017.61
5.6.100.0100.04717.76
5.6.90.0150.03717.68
5.6.80.0110.04117.35
5.6.70.0260.00914.16
5.6.60.0350.01114.33
5.6.50.0280.00714.23
5.6.40.0160.01613.98
5.6.30.0310.00914.34
5.6.20.0200.01214.38
5.6.10.0170.00714.16
5.6.00.0300.00714.19
5.5.380.0090.00310.99
5.5.370.0060.00210.93
5.5.360.0070.00010.91
5.5.350.0050.04215.70
5.5.340.0030.04514.45
5.5.330.0060.02915.53
5.5.320.0150.04215.51
5.5.310.0080.02615.60
5.5.300.0080.03814.37
5.5.290.0050.03514.44
5.5.280.0070.04215.79
5.5.270.0080.03715.73
5.5.260.0080.04315.85
5.5.250.0060.04215.89
5.5.240.0020.02515.52
5.5.230.0070.00710.93
5.5.220.0060.00910.81
5.5.210.0050.00510.84
5.5.200.0130.00710.69
5.5.190.0100.00710.89
5.5.180.0130.01010.85
5.5.170.0130.00310.95
5.5.160.0200.00610.88
5.5.150.0080.00810.98
5.5.140.0030.00811.03
5.5.130.0150.00310.79
5.5.120.0040.00811.07
5.5.110.0100.00710.82
5.5.100.0130.00010.97
5.5.90.0040.01210.50
5.5.80.0100.00010.67
5.5.70.0050.00211.04
5.5.60.0030.00510.79
5.5.50.0030.00310.84
5.5.40.0040.01110.69
5.5.30.0040.00811.03
5.5.20.0000.00710.84
5.5.10.0030.00910.75
5.5.00.0030.00310.75
5.4.450.0270.03315.21
5.4.440.0290.03015.30
5.4.430.0070.03015.10
5.4.420.0080.03015.07
5.4.410.0160.02015.08
5.4.400.0490.00014.53
5.4.390.0450.00214.72
5.4.380.0480.03214.71
5.4.370.0690.03014.72
5.4.360.0560.02714.73
5.4.350.0550.03014.70
5.4.340.0510.03214.60
5.4.330.0080.00310.56
5.4.320.0090.02411.52
5.4.310.0070.02211.53
5.4.300.0050.02711.68
5.4.290.0060.01911.54
5.4.280.0050.02111.54
5.4.270.0080.03214.59
5.4.260.0080.02614.88
5.4.250.0050.03014.82
5.4.240.0150.02114.92
5.4.230.0100.02514.70
5.4.220.0060.03314.85
5.4.210.0070.04114.76
5.4.200.0060.02614.93
5.4.190.0130.02314.88
5.4.180.0100.03314.85
5.4.170.0090.03214.71
5.4.160.0120.02214.88
5.4.150.0100.03814.90
5.4.140.0070.03413.54
5.4.130.0080.02813.67
5.4.120.0110.02213.59
5.4.110.0080.02613.60
5.4.100.0030.03813.48
5.4.90.0030.02813.56
5.4.80.0060.02813.64
5.4.70.0070.03013.71
5.4.60.0050.02513.63
5.4.50.0060.03113.52
5.4.40.0140.03313.55
5.4.30.0140.02013.62
5.4.20.0100.02513.64
5.4.10.0110.02613.51
5.4.00.0050.02713.33
5.3.290.0100.02011.66
5.3.280.0090.03312.36
5.3.270.0070.03812.60
5.3.260.0110.02212.30
5.3.250.0030.04112.43
5.3.240.0050.03012.51
5.3.230.0050.03012.38
5.3.220.0120.02312.34
5.3.210.0030.03412.40
5.3.200.0050.02812.40
5.3.190.0100.03512.41
5.3.180.0100.03512.49
5.3.170.0070.02512.50
5.3.160.0020.03112.47
5.3.150.0020.03012.45
5.3.140.0060.02612.31
5.3.130.0050.02812.52
5.3.120.0100.02512.34
5.3.110.0050.02812.49
5.3.100.0050.02712.25
5.3.90.0040.02912.20
5.3.80.0100.02512.05
5.3.70.0080.02812.11
5.3.60.0000.03012.25
5.3.50.0020.03012.00
5.3.40.0070.03312.03
5.3.30.0050.03712.12
5.3.20.0050.02611.91
5.3.10.0050.02511.88
5.3.00.0060.03011.69
5.2.170.0030.02410.52
5.2.160.0090.02810.56
5.2.150.0050.02010.60
5.2.140.0080.02310.47
5.2.130.0020.02810.49
5.2.120.0080.01810.46
5.2.110.0010.03110.46
5.2.100.0080.03010.50
5.2.90.0070.02810.55
5.2.80.0050.02310.50
5.2.70.0050.02210.45
5.2.60.0030.02710.44
5.2.50.0090.01810.42
5.2.40.0070.02310.45
5.2.30.0010.03010.40
5.2.20.0030.02310.38
5.2.10.0080.01710.42
5.2.00.0040.02410.33
5.1.60.0040.0209.83
5.1.50.0070.0179.90
5.1.40.0060.0179.96
5.1.30.0090.01710.19
5.1.20.0150.01510.09
5.1.10.0000.03110.07
5.1.00.0080.0219.94
5.0.50.0030.0159.20
5.0.40.0030.0159.20
5.0.30.0070.0189.15
5.0.20.0030.0139.11
5.0.10.0070.0139.05
5.0.00.0030.0288.99
4.4.90.0020.0158.25
4.4.80.0000.0198.25
4.4.70.0050.0138.25
4.4.60.0010.0158.25
4.4.50.0000.0148.25
4.4.40.0020.0208.25
4.4.30.0050.0148.25
4.4.20.0040.0148.25
4.4.10.0040.0108.25
4.4.00.0050.0188.25
4.3.110.0020.0138.25
4.3.100.0030.0098.25
4.3.90.0000.0148.25
4.3.80.0010.0188.25
4.3.70.0050.0108.25
4.3.60.0030.0168.25
4.3.50.0000.0148.25
4.3.40.0060.0188.25
4.3.30.0020.0128.25
4.3.20.0030.0128.25
4.3.10.0020.0138.25
4.3.00.0090.0088.51

preferences:
56.16 ms | 400 KiB | 5 Q