3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding("UTF-8"); $str = "Ahoj já jsem poslední. "; $ln = mb_strlen($str, 'UTF-8'); $ref = 0; $offset = mb_strrpos($str, ' ', $ref, 'UTF-8'); echo "<br>nalezeno na pozici $offset, \$ref = $ref"; $ref = $offset - 1 - $ln; $offset = mb_strrpos($str, ' ', $ref, 'UTF-8'); echo "<br>nalezeno na pozici $offset, \$ref = $ref"; $ref = $offset - 1 - $ln; $offset = mb_strrpos($str, ' ', $ref, 'UTF-8'); echo "<br>nalezeno na pozici $offset, \$ref = $ref"; $ref = $offset - 1 - $ln; $offset = mb_strrpos($str, ' ', $ref, 'UTF-8'); echo "<br>nalezeno na pozici $offset, \$ref = $ref"; $ref = $offset - 1 - $ln;

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.0030.01016.23
8.3.50.0110.00617.26
8.3.40.0110.00418.70
8.3.30.0140.00318.56
8.3.20.0060.00918.69
8.3.10.0060.00318.63
8.3.00.0040.00419.38
8.2.180.0090.00618.16
8.2.170.0070.00722.96
8.2.160.0060.00821.15
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00420.89
8.2.110.0090.00022.25
8.2.100.0060.00617.78
8.2.90.0060.00319.05
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00818.03
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0040.00418.00
8.2.20.0000.00917.52
8.2.10.0040.00417.75
8.2.00.0110.00017.75
8.1.280.0100.01025.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00019.17
8.1.230.0110.00017.42
8.1.220.0000.00817.76
8.1.210.0030.00718.77
8.1.200.0000.01117.10
8.1.190.0030.00617.41
8.1.180.0030.00518.10
8.1.170.0070.00018.58
8.1.160.0040.00418.84
8.1.150.0070.00018.52
8.1.140.0080.00017.29
8.1.130.0030.00317.84
8.1.120.0040.00417.26
8.1.110.0000.00717.29
8.1.100.0070.00017.32
8.1.90.0000.00717.27
8.1.80.0000.00717.36
8.1.70.0000.00717.34
8.1.60.0040.00817.58
8.1.50.0000.00917.49
8.1.40.0030.00617.41
8.1.30.0040.00417.62
8.1.20.0060.00317.50
8.1.10.0040.00417.45
8.1.00.0030.00517.57
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0000.00718.52
8.0.270.0050.00317.28
8.0.260.0030.00316.95
8.0.250.0030.00617.03
8.0.240.0040.00417.05
8.0.230.0030.00316.94
8.0.220.0030.00316.93
8.0.210.0030.00316.93
8.0.200.0000.00617.05
8.0.190.0070.00017.10
8.0.180.0040.00416.98
8.0.170.0030.00516.98
8.0.160.0030.00316.98
8.0.150.0000.00816.85
8.0.140.0000.00816.95
8.0.130.0000.00613.41
8.0.120.0000.00816.93
8.0.110.0040.00416.88
8.0.100.0030.00316.83
8.0.90.0000.00716.82
8.0.80.0070.01016.98
8.0.70.0070.00016.91
8.0.60.0080.00016.84
8.0.50.0080.00017.00
8.0.30.0060.01216.99
8.0.20.0080.01117.22
8.0.10.0000.00816.78
8.0.00.0100.00916.92
7.4.330.0050.00013.05
7.4.320.0030.00316.56
7.4.300.0040.00416.56
7.4.290.0000.00716.55
7.4.280.0050.00316.47
7.4.270.0000.00716.44
7.4.260.0000.00613.20
7.4.250.0030.00616.46
7.4.240.0050.00216.49
7.4.230.0000.00716.65
7.4.220.0150.01116.50
7.4.210.0080.00616.59
7.4.200.0030.00316.26
7.4.190.0000.00716.52
7.4.160.0170.00716.40
7.4.150.0070.01016.37
7.4.140.0140.00716.28
7.4.130.0080.01216.39
7.4.120.0050.01316.46
7.4.110.0070.01016.59
7.4.100.0030.01416.54
7.4.90.0110.00916.47
7.4.80.0070.01419.39
7.4.70.0150.00616.43
7.4.60.0100.01016.43
7.4.50.0130.00016.67
7.4.40.0060.00916.30
7.4.30.0110.01116.40
7.4.00.0070.01014.99
7.3.330.0030.00313.02
7.3.320.0030.00313.12
7.3.310.0000.00716.21
7.3.300.0030.00316.11
7.3.290.0120.00416.38
7.3.280.0090.01016.29
7.3.270.0100.00716.33
7.3.260.0090.00816.47
7.3.250.0140.00516.40
7.3.240.0110.01016.47
7.3.230.0080.00816.29
7.3.210.0120.00916.54
7.3.200.0130.00716.61
7.3.190.0130.00316.29
7.3.180.0110.01116.43
7.3.170.0100.01416.19
7.3.160.0070.01416.53
7.3.120.0120.00614.80
7.3.10.0040.00416.70
7.3.00.0030.01016.22
7.2.330.0090.00916.66
7.2.320.0170.00016.35
7.2.310.0180.00016.39
7.2.300.0130.00716.46
7.2.290.0110.00516.38
7.2.130.0000.01016.61
7.2.120.0040.01116.57
7.2.110.0040.01116.54
7.2.100.0100.00316.39
7.2.90.0080.01116.84
7.2.80.0090.00916.85
7.2.70.0090.00616.91
7.2.60.0060.00316.46
7.2.50.0030.01016.85
7.2.40.0070.01016.84
7.2.30.0110.00716.75
7.2.20.0090.00616.79
7.2.10.0140.00416.62
7.2.00.0080.00517.89
7.1.250.0140.00415.56
7.1.240.0090.00315.75
7.1.230.0090.00915.54
7.1.220.0000.00915.76
7.1.210.0030.00615.78
7.1.200.0170.00015.69
7.1.190.0060.00915.78
7.1.180.0160.00015.48
7.1.170.0100.00315.80
7.1.160.0040.00715.79
7.1.150.0030.00615.78
7.1.140.0030.00715.82
7.1.130.0030.01215.90
7.1.120.0040.01115.73
7.1.110.0030.01015.56
7.1.100.0050.00516.89
7.1.90.0120.00615.42
7.1.80.0110.00715.54
7.1.70.0060.00616.54
7.1.60.0060.01217.49
7.1.50.0110.00516.27
7.1.40.0060.00615.65
7.1.30.0070.00715.54
7.1.20.0000.01415.56
7.1.10.0030.01015.64
7.1.00.0030.03719.06
7.0.330.0000.01015.37
7.0.320.0080.01315.38
7.0.310.0130.00315.32
7.0.300.0030.01215.32
7.0.290.0090.00615.50
7.0.280.0000.00815.29
7.0.270.0130.00315.29
7.0.260.0040.00415.22
7.0.250.0080.00015.53
7.0.240.0030.00915.41
7.0.230.0060.00815.47
7.0.220.0060.00615.23
7.0.210.0130.00315.25
7.0.200.0160.00315.01
7.0.190.0080.01115.26
7.0.180.0030.00614.98
7.0.170.0060.01015.56
7.0.160.0040.00815.46
7.0.150.0050.00815.30
7.0.140.0050.03818.56
7.0.130.0000.00915.09
7.0.120.0060.02618.66
7.0.110.0030.00615.24
7.0.100.0100.00315.34
7.0.90.0040.01215.16
7.0.80.0000.01015.49
7.0.70.0000.01315.33
7.0.60.0080.04217.59
7.0.50.0050.04216.44
7.0.40.0080.04216.83
7.0.30.0150.02616.74
7.0.20.0110.02416.75
7.0.10.0080.03816.83
7.0.00.0070.04516.89
5.6.380.0100.00614.25
5.6.370.0090.00314.40
5.6.360.0060.00914.41
5.6.350.0060.00614.06
5.6.340.0090.00613.95
5.6.330.0070.00714.33
5.6.320.0060.00314.25
5.6.310.0070.00414.26
5.6.300.0060.00614.19
5.6.290.0130.00314.49
5.6.280.0000.01514.16
5.6.270.0090.00614.30
5.6.260.0000.01214.32
5.6.250.0000.00913.98
5.6.240.0070.00714.16
5.6.230.0100.00714.03
5.6.220.0030.00913.97
5.6.210.0120.03817.45
5.6.200.0080.04016.18
5.6.190.0030.05017.38
5.6.180.0190.04217.30
5.6.170.0150.04117.42
5.6.160.0120.04117.29
5.6.150.0040.02716.13
5.6.140.0050.02616.18
5.6.130.0060.03516.16
5.6.120.0030.02417.62
5.6.110.0080.04517.55
5.6.100.0080.03117.65
5.6.90.0060.02717.51
5.6.80.0170.03517.27
5.6.70.0160.02017.38
5.6.60.0030.01014.14
5.6.50.0040.01114.20
5.6.40.0070.00713.84
5.6.30.0060.00614.11
5.6.20.0080.00614.21
5.6.10.0030.01314.28
5.6.00.0000.01414.20
5.5.380.0070.00711.25
5.5.370.0030.00910.82
5.5.360.0060.00011.03
5.5.350.0190.03515.67
5.5.340.0050.04414.40
5.5.330.0030.02615.56
5.5.320.0110.03115.63
5.5.310.0200.03915.62
5.5.300.0050.02214.43
5.5.290.0040.04214.36
5.5.280.0100.02615.89
5.5.270.0050.04415.88
5.5.260.0100.03015.80
5.5.250.0070.02115.81
5.5.240.0100.03715.50
5.5.230.0080.00310.93
5.5.220.0090.00310.76
5.5.210.0050.00510.77
5.5.200.0000.00611.08
5.5.190.0030.00911.05
5.5.180.0040.00411.07
5.5.170.0030.01011.01
5.5.160.0030.00310.99
5.5.150.0000.00711.09
5.5.140.0090.00411.00
5.5.130.0130.00010.93
5.5.120.0030.01011.15
5.5.110.0030.00610.87
5.5.100.0060.00010.87
5.5.90.0000.00810.91
5.5.80.0050.00510.44
5.5.70.0030.00910.59
5.5.60.0060.00611.00
5.5.50.0030.01210.96
5.5.40.0080.00511.06
5.5.30.0070.00710.67
5.5.20.0070.01010.57
5.5.10.0080.00510.85
5.5.00.0100.00310.84
5.4.450.0030.03915.07
5.4.440.0060.04215.01
5.4.430.0080.04215.21
5.4.420.0000.04815.08
5.4.410.0040.02815.05
5.4.400.0030.02315.07
5.4.390.0100.03214.82
5.4.380.0020.03014.86
5.4.370.0030.02914.75
5.4.360.0070.03114.96
5.4.350.0050.03415.04
5.4.340.0050.03015.03
5.4.330.0000.01210.75
5.4.320.0060.03115.08
5.4.310.0060.03814.97
5.4.300.0030.03614.94
5.4.290.0080.03814.63
5.4.280.0110.02714.81
5.4.270.0070.03615.03
5.4.260.0030.02815.08
5.4.250.0070.03214.82
5.4.240.0030.04015.06
5.4.230.0050.02714.79
5.4.220.0050.02014.86
5.4.210.0030.02615.12
5.4.200.0080.03114.97
5.4.190.0080.02814.98
5.4.180.0090.03014.91
5.4.170.0070.04114.89
5.4.160.0080.02414.91
5.4.150.0100.03714.92
5.4.140.0070.03713.56
5.4.130.0060.03913.62
5.4.120.0100.03213.57
5.4.110.0110.03513.68
5.4.100.0110.03713.63
5.4.90.0080.02813.46
5.4.80.0080.03713.51
5.4.70.0050.03613.51
5.4.60.0060.02113.51
5.4.50.0100.03513.59
5.4.40.0030.04213.60
5.4.30.0020.02913.58
5.4.20.0080.02813.58
5.4.10.0050.04013.82
5.4.00.0050.03713.32
5.3.290.0030.04312.59
5.3.280.0050.04012.46
5.3.270.0040.02512.44
5.3.260.0030.02912.56
5.3.250.0100.03812.51
5.3.240.0060.03912.49
5.3.230.0020.04412.53
5.3.220.0070.04512.43
5.3.210.0080.02712.37
5.3.200.0070.02512.45
5.3.190.0080.03312.46
5.3.180.0020.03812.43
5.3.170.0080.02812.43
5.3.160.0020.02512.54
5.3.150.0120.03312.50
5.3.140.0050.04012.34
5.3.130.0120.02312.39
5.3.120.0070.03512.27
5.3.110.0120.03512.36
5.3.100.0050.04212.19
5.3.90.0020.03412.25
5.3.80.0050.02212.01
5.3.70.0040.02012.12
5.3.60.0080.03512.22
5.3.50.0050.04012.09
5.3.40.0050.02511.94
5.3.30.0020.03512.03
5.3.20.0030.04211.84
5.3.10.0040.02211.73
5.3.00.0050.02811.83
5.2.170.0030.02210.31
5.2.160.0050.02010.35
5.2.150.0060.01810.36
5.2.140.0030.01810.34
5.2.130.0020.03110.24
5.2.120.0060.03010.29
5.2.110.0040.01810.32
5.2.100.0070.03410.26
5.2.90.0060.02910.30
5.2.80.0090.03010.26
5.2.70.0070.03210.36
5.2.60.0060.03210.23
5.2.50.0030.03210.13
5.2.40.0040.02910.21
5.2.30.0050.01810.10
5.2.20.0030.0259.98
5.2.10.0020.0329.92
5.2.00.0050.0219.94
5.1.60.0010.0209.24
5.1.50.0090.0189.29
5.1.40.0050.0259.36
5.1.30.0020.0239.59
5.1.20.0050.0299.56
5.1.10.0050.0209.40
5.1.00.0020.0209.28
5.0.50.0020.0158.54
5.0.40.0000.0168.44
5.0.30.0000.0318.37
5.0.20.0040.0198.36
5.0.10.0060.0148.39
5.0.00.0050.0228.32
4.4.90.0020.0228.21
4.4.80.0020.0208.21
4.4.70.0020.0108.21
4.4.60.0020.0178.21
4.4.50.0040.0178.21
4.4.40.0020.0208.21
4.4.30.0020.0198.21
4.4.20.0000.0118.21
4.4.10.0030.0108.21
4.4.00.0050.0128.21
4.3.110.0050.0168.21
4.3.100.0000.0158.21
4.3.90.0020.0118.21
4.3.80.0010.0208.21
4.3.70.0050.0158.21
4.3.60.0060.0168.21
4.3.50.0050.0138.21
4.3.40.0030.0258.21
4.3.30.0030.0128.21
4.3.20.0000.0138.21
4.3.10.0020.0138.21
4.3.00.0020.0118.21

preferences:
45.2 ms | 401 KiB | 5 Q