3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _block_get_positions ($txt){ $re1=".*?"; $re2="\\["; $re3=".*?"; $re4="\\["; $re5=".*?"; $re6="\\["; $re7=".*?"; $re8="\\["; $re9=".*?"; $re10="(\\[)"; $re11="(n)"; $re12="(i)"; $re13="(d)"; $re14="(:)"; $re15="(\\d+)"; if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9.$re10.$re11.$re12.$re13.$re14.$re15."/is", $txt, $matches)) { $c1=$matches[1][0]; $w1=$matches[2][0]; $c2=$matches[3][0]; $c3=$matches[4][0]; $c4=$matches[5][0]; $int1=$matches[6][0]; } return $int1; } $a="Fatti&Storie 5 - Lorem ipsum dolor nid:666 [bid:667] [cid:668] [id:669] [12] sit amet [nid:112]"; print(_block_get_position($a));

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.0060.00918.55
8.3.50.0070.00922.87
8.3.40.0070.00718.76
8.3.30.0030.01018.81
8.3.20.0040.00420.39
8.3.10.0040.00423.47
8.3.00.0080.00019.25
8.2.180.0040.01116.75
8.2.170.0130.01022.96
8.2.160.0070.00720.29
8.2.150.0000.00824.18
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00320.89
8.2.110.0000.00920.53
8.2.100.0060.00617.78
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0050.00317.91
8.2.50.0030.00618.07
8.2.40.0040.00417.97
8.2.30.0000.00718.05
8.2.20.0040.00417.77
8.2.10.0000.00818.02
8.2.00.0000.00817.63
8.1.280.0110.00425.92
8.1.270.0060.00323.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01022.39
8.1.230.0040.00720.84
8.1.220.0040.00418.77
8.1.210.0060.00318.84
8.1.200.0000.01117.22
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0030.00618.45
8.1.160.0050.00221.96
8.1.150.0070.00018.83
8.1.140.0030.00517.44
8.1.130.0000.00717.90
8.1.120.0070.00017.44
8.1.110.0080.00017.40
8.1.100.0040.00417.27
8.1.90.0030.00517.44
8.1.80.0000.00717.31
8.1.70.0000.00717.38
8.1.60.0000.00917.60
8.1.50.0030.00617.41
8.1.40.0000.00817.49
8.1.30.0080.00017.56
8.1.20.0060.00317.67
8.1.10.0030.00617.47
8.1.00.0000.00817.53
8.0.300.0000.00719.93
8.0.290.0080.00016.75
8.0.280.0030.00318.41
8.0.270.0050.00317.07
8.0.260.0000.00617.08
8.0.250.0030.00316.90
8.0.240.0080.00016.96
8.0.230.0000.00717.00
8.0.220.0070.00016.79
8.0.210.0030.00616.86
8.0.200.0030.00316.92
8.0.190.0000.00816.94
8.0.180.0040.00416.96
8.0.170.0040.00416.89
8.0.160.0040.00416.92
8.0.150.0000.00716.80
8.0.140.0040.00316.87
8.0.130.0030.00313.29
8.0.120.0040.00416.77
8.0.110.0040.00416.81
8.0.100.0040.00416.85
8.0.90.0050.00216.77
8.0.80.0090.00616.92
8.0.70.0000.00816.86
8.0.60.0090.00016.90
8.0.50.0050.00216.73
8.0.30.0120.00816.89
8.0.20.0100.00817.40
8.0.10.0050.00217.13
8.0.00.0100.00916.77
7.4.330.0000.00615.06
7.4.320.0060.00016.54
7.4.300.0070.00016.50
7.4.290.0070.00016.37
7.4.280.0000.00716.59
7.4.270.0070.00016.42
7.4.260.0050.00316.42
7.4.250.0000.00816.53
7.4.240.0020.00516.39
7.4.230.0030.00316.72
7.4.220.0150.00316.54
7.4.210.0060.00716.52
7.4.200.0000.00716.42
7.4.160.0110.00616.73
7.4.150.0110.00717.40
7.4.140.0150.00517.86
7.4.130.0110.00516.50
7.4.120.0070.01016.63
7.4.110.0090.00916.55
7.4.100.0140.00316.45
7.4.90.0070.01016.49
7.4.80.0100.01419.39
7.4.70.0100.00716.59
7.4.60.0110.00616.51
7.4.50.0060.00316.60
7.4.40.0030.01316.35
7.4.30.0100.00616.39
7.4.00.0080.00814.87
7.3.330.0060.00013.12
7.3.320.0060.00013.32
7.3.310.0060.00016.28
7.3.300.0000.00716.18
7.3.290.0090.00616.31
7.3.280.0110.00416.30
7.3.270.0120.00417.40
7.3.260.0050.01116.51
7.3.250.0150.00616.36
7.3.240.0130.00616.45
7.3.230.0060.01216.39
7.3.210.0090.00916.46
7.3.200.0040.01519.39
7.3.190.0100.00716.52
7.3.180.0090.00616.37
7.3.170.0080.00816.51
7.3.160.0030.01316.22
7.3.10.0040.01116.32
7.3.00.0070.00716.51
7.2.330.0180.00616.41
7.2.320.0050.00716.59
7.2.310.0110.01116.61
7.2.300.0090.01216.41
7.2.290.0160.00016.36
7.2.130.0080.00816.80
7.2.120.0040.01116.59
7.2.110.0040.01516.66
7.2.100.0070.00316.71
7.2.90.0060.00616.55
7.2.80.0040.01116.77
7.2.70.0050.00516.80
7.2.60.0020.01016.63
7.2.50.0100.00716.79
7.2.40.0070.01016.95
7.2.30.0070.00716.60
7.2.20.0110.00416.77
7.2.10.0030.00716.78
7.2.00.0090.00916.82
7.1.250.0040.00415.30
7.1.200.0070.00715.55
7.1.70.0030.00716.53
7.1.60.0100.01319.40
7.1.50.0070.01716.60
7.1.00.0100.07022.40
7.0.200.0030.00616.30
7.0.140.0030.07021.95
7.0.60.0030.06719.98
7.0.50.0130.07717.84
7.0.40.0070.08320.25
7.0.30.0300.08320.15
7.0.20.0500.06020.31
7.0.10.0070.07320.23
7.0.00.0100.04020.29
5.6.210.0100.05020.77
5.6.200.0070.06018.25
5.6.190.0000.04720.47
5.6.180.0300.07320.46
5.6.170.0270.07320.47
5.6.160.0030.07020.44
5.6.150.0070.08318.29
5.6.140.0100.07318.15
5.6.130.0030.05318.27
5.6.120.0070.04321.13
5.6.110.0070.04021.15
5.6.100.0030.07321.12
5.6.90.0100.08321.13
5.6.80.0100.07320.52
5.5.350.0070.07020.35
5.5.340.0030.05318.09
5.5.330.0000.04320.41
5.5.320.0000.09020.33
5.5.310.0200.04720.22
5.5.300.0030.03718.04
5.5.290.0030.04017.94
5.5.280.0070.05320.90
5.5.270.0030.07020.89
5.5.260.0100.08320.89
5.5.250.0030.08720.79
5.5.240.3970.04020.24
5.4.450.0500.03719.54
5.4.440.0700.04319.32
5.4.430.0170.04319.41
5.4.420.0300.04719.47
5.4.410.0070.03319.41
5.4.400.0230.04319.17
5.4.390.0200.04719.24
5.4.380.0130.05718.61
5.4.370.0230.04318.75
5.4.360.0130.05318.65
5.4.350.0170.05018.74
5.4.340.0070.06018.62
5.4.320.0060.03512.51
5.4.310.0040.03912.50
5.4.300.0080.03512.51
5.4.290.0040.04012.50
5.4.280.0060.03612.40
5.4.270.0030.03812.40
5.4.260.0060.03912.40
5.4.250.0060.03712.40
5.4.240.0090.04312.40
5.4.230.0050.03912.40
5.4.220.0080.03312.39
5.4.210.0040.03712.39
5.4.200.0050.04012.39
5.4.190.0060.04212.39
5.4.180.0030.03912.39
5.4.170.0070.03812.40
5.4.160.0080.03512.39
5.4.150.0020.04312.39
5.4.140.0060.03712.07
5.4.130.0060.03712.07
5.4.120.0070.03412.02
5.4.110.0040.03712.02
5.4.100.0040.03712.02
5.4.90.0090.03812.02
5.4.80.0060.03912.02
5.4.70.0060.03612.02
5.4.60.0050.03612.01
5.4.50.0080.03312.02
5.4.40.0060.04012.00
5.4.30.0030.04112.00
5.4.20.0090.03312.00
5.4.10.0060.03512.00
5.4.00.0100.03311.49
5.3.290.0060.04012.80
5.3.280.0040.04112.71
5.3.270.0060.04012.73
5.3.260.0060.04012.72
5.3.250.0030.04112.72
5.3.240.0070.03612.72
5.3.230.0070.03712.71
5.3.220.0050.03812.68
5.3.210.0050.04012.68
5.3.200.0110.03312.68
5.3.190.0050.03812.68
5.3.180.0060.03712.68
5.3.170.0050.04012.67
5.3.160.0060.03612.67
5.3.150.0030.04012.67
5.3.140.0090.04012.66
5.3.130.0060.04012.66
5.3.120.0050.03912.66
5.3.110.0060.03912.66
5.3.100.0060.04112.12
5.3.90.0060.03712.11
5.3.80.0030.04212.10
5.3.70.0050.03812.09
5.3.60.0080.03612.08
5.3.50.0070.03612.03
5.3.40.0080.03512.03
5.3.30.0060.03411.98
5.3.20.0080.03411.77
5.3.10.0060.03411.73
5.3.00.0060.03611.72
5.2.170.0050.0309.23
5.2.160.0090.0259.22
5.2.150.0060.0309.23
5.2.140.0020.0339.22
5.2.130.0050.0309.18
5.2.120.0070.0289.18
5.2.110.0090.0269.18
5.2.100.0050.0319.18
5.2.90.0060.0309.18
5.2.80.0040.0339.18
5.2.70.0070.0309.18
5.2.60.0070.0299.13
5.2.50.0080.0299.10
5.2.40.0020.0319.07
5.2.30.0030.0319.05
5.2.20.0050.0289.04
5.2.10.0060.0268.95
5.2.00.0050.0298.82
5.1.60.0040.0258.09
5.1.50.0020.0278.09
5.1.40.0050.0258.07
5.1.30.0070.0258.42
5.1.20.0050.0258.44
5.1.10.0030.0278.16
5.1.00.0040.0258.17
5.0.50.0030.0216.66
5.0.40.0030.0196.52
5.0.30.0050.0306.33
5.0.20.0010.0226.30
5.0.10.0040.0196.28
5.0.00.0030.0316.27
4.4.90.0050.0214.78
4.4.80.0020.0174.76
4.4.70.0050.0184.75
4.4.60.0010.0174.76
4.4.50.0030.0154.77
4.4.40.0030.0274.71
4.4.30.0040.0144.76
4.4.20.0020.0174.84
4.4.10.0030.0154.84
4.4.00.0050.0234.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0030.0144.63
4.3.80.0030.0254.58
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0040.0204.63
4.3.40.0020.0254.54
4.3.30.0010.0203.32
4.3.20.0040.0153.30
4.3.10.0000.0183.25
4.3.00.0000.02015.97

preferences:
36.72 ms | 401 KiB | 5 Q