3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "56s/62b/56b - 42b/45b/26s"; $input = "56s/62b/56b-42b/45b/26s"; $input = str_replace("-", "/", $input); $input = "/".$input."/"; echo $input . "\n"; // preg_match("/^.+?\](.+)$/is" , $string_text, $match); // preg_match("/(?<=#).*?(?=#)/", "1232#hello world#", $match); // preg_match("/(?<=\/).*?(?=#)/", "1232#/hello world#", $match); // preg_match("/(?<=\/).*?(?=(\/|\-))/", $input, $match); // preg_match("/(?<=\/)(.*)(?=\/)/", $input, $match); // preg_match("/(?<=\/).*(?=\/)/", $input, $match); preg_match("/\/(.*?)\//", $input, $match); print_r($match) ?>

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.01616.75
8.3.50.0050.01621.97
8.3.40.0090.00618.86
8.3.30.0000.01418.89
8.3.20.0080.00020.27
8.3.10.0040.00423.42
8.3.00.0030.00619.68
8.2.180.0110.01116.75
8.2.170.0070.00722.96
8.2.160.0110.00720.27
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00021.14
8.2.110.0030.00722.24
8.2.100.0040.00718.16
8.2.90.0040.00418.90
8.2.80.0050.00317.97
8.2.70.0080.00017.75
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0030.00518.20
8.2.20.0000.00917.70
8.2.10.0040.00418.16
8.2.00.0030.00617.91
8.1.280.0070.01025.92
8.1.270.0040.00423.91
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0000.01023.97
8.1.230.0060.00619.09
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0030.00517.38
8.1.180.0000.00818.10
8.1.170.0070.00418.53
8.1.160.0040.00422.03
8.1.150.0020.00519.01
8.1.140.0050.00217.51
8.1.130.0040.00417.89
8.1.120.0000.00717.54
8.1.110.0000.00817.59
8.1.100.0080.00017.51
8.1.90.0040.00417.60
8.1.80.0050.00317.60
8.1.70.0000.00817.49
8.1.60.0040.00417.68
8.1.50.0040.00417.68
8.1.40.0040.00417.71
8.1.30.0030.00617.84
8.1.20.0030.00617.70
8.1.10.0040.00417.68
8.1.00.0030.00517.61
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0030.00318.38
8.0.270.0000.00717.19
8.0.260.0060.00017.32
8.0.250.0040.00417.10
8.0.240.0030.00317.10
8.0.230.0030.00317.03
8.0.220.0030.00317.05
8.0.210.0030.00316.99
8.0.200.0000.00617.05
8.0.190.0000.00717.08
8.0.180.0030.00717.09
8.0.170.0000.00716.95
8.0.160.0000.00817.16
8.0.150.0000.00717.01
8.0.140.0000.00817.00
8.0.130.0000.00613.45
8.0.120.0050.00316.89
8.0.110.0000.00716.97
8.0.100.0040.00416.97
8.0.90.0080.00016.90
8.0.80.0060.01317.02
8.0.70.0040.00416.86
8.0.60.0070.00017.15
8.0.50.0000.00716.91
8.0.30.0090.01017.29
8.0.20.0110.01217.40
8.0.10.0050.00316.96
8.0.00.0080.00816.65
7.4.330.0000.00515.16
7.4.320.0000.00616.64
7.4.300.0000.00616.75
7.4.290.0000.00716.71
7.4.280.0080.00016.75
7.4.270.0040.00416.75
7.4.260.0000.00616.67
7.4.250.0080.00016.69
7.4.240.0030.00516.60
7.4.230.0000.00816.72
7.4.220.0030.01516.77
7.4.210.0120.00916.68
7.4.200.0000.00716.60
7.4.160.0040.01216.57
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0080.01116.59
7.4.120.0120.00816.70
7.4.110.0150.00616.62
7.4.100.0110.00616.54
7.4.90.0150.00616.69
7.4.80.0140.00419.39
7.4.70.0100.00716.55
7.4.60.0090.01216.56
7.4.50.0060.00316.69
7.4.40.0090.00616.67
7.4.30.0060.00916.44
7.4.00.0070.01114.82
7.3.330.0000.00613.30
7.3.320.0000.00513.28
7.3.310.0040.00416.40
7.3.300.0040.00416.42
7.3.290.0030.01016.37
7.3.280.0090.00716.42
7.3.270.0060.01217.40
7.3.260.0180.00616.63
7.3.250.0100.00816.51
7.3.240.0030.01416.57
7.3.230.0140.00416.79
7.3.210.0090.00916.41
7.3.200.0120.00919.39
7.3.190.0130.01016.75
7.3.180.0110.00616.68
7.3.170.0100.01016.70
7.3.160.0050.01116.55
7.3.120.0110.00414.91
7.2.330.0060.01216.93
7.2.320.0030.01516.90
7.2.310.0110.00716.59
7.2.300.0070.01016.62
7.2.290.0030.01316.66
7.1.70.0030.00616.89
7.1.60.0080.00819.70
7.1.50.0180.01435.02
7.1.00.0030.07722.42
7.0.200.0100.00716.92
7.0.140.0030.07022.15
7.0.60.0030.04019.96
7.0.50.0030.05017.88
7.0.40.0170.07320.04
7.0.30.0330.06720.23
7.0.20.0300.07320.21
7.0.10.0030.04320.22
7.0.00.0070.08720.24
5.6.280.0070.07021.16
5.6.210.0130.05720.69
5.6.200.0000.08718.22
5.6.190.0000.09320.50
5.6.180.0370.06320.55
5.6.170.0230.03320.44
5.6.160.0030.09020.49
5.6.150.0100.08018.18
5.6.140.0070.06018.18
5.6.130.0130.06318.17
5.6.120.0070.05720.98
5.6.110.0070.08321.13
5.6.100.0130.07721.12
5.6.90.0100.08020.96
5.6.80.0070.04020.48
5.5.350.0030.08020.39
5.5.340.0130.05717.97
5.5.330.0070.06720.37
5.5.320.0300.04320.36
5.5.310.0330.04320.25
5.5.300.0100.04018.07
5.5.290.0070.06017.97
5.5.280.0070.08720.86
5.5.270.0170.06720.79
5.5.260.0100.08320.87
5.5.250.0100.06020.54
5.5.240.0100.08020.25
5.4.450.0200.04719.30
5.4.440.0430.04319.55
5.4.430.0230.04319.38
5.4.420.0370.03719.29
5.4.410.0130.04719.04
5.4.400.0430.04719.07
5.4.390.0330.04319.16
5.4.380.0100.06018.53
5.4.370.0100.06018.52
5.4.360.0200.04718.75
5.4.350.0200.05718.70
5.4.340.0070.06018.59
5.4.320.0060.03612.48
5.4.310.0050.03912.47
5.4.300.0070.03812.48
5.4.290.0040.04112.48
5.4.280.0060.03512.37
5.4.270.0050.03712.37
5.4.260.0060.03712.38
5.4.250.0040.03912.38
5.4.240.0040.03712.37
5.4.230.0070.03712.36
5.4.220.0040.03812.36
5.4.210.0060.03712.36
5.4.200.0070.03812.37
5.4.190.0080.03912.36
5.4.180.0060.04012.36
5.4.170.0080.03712.37
5.4.160.0080.03412.37
5.4.150.0060.03512.37
5.4.140.0060.03712.05
5.4.130.0070.03512.04
5.4.120.0050.03612.00
5.4.110.0070.03412.00
5.4.100.0040.04611.99
5.4.90.0070.04211.99
5.4.80.0100.03611.99
5.4.70.0060.03611.99
5.4.60.0080.03411.98
5.4.50.0070.03511.99
5.4.40.0070.03411.97
5.4.30.0100.03411.97
5.4.20.0080.03511.97
5.4.10.0030.03711.98
5.4.00.0070.04111.46
5.3.290.0050.04012.80
5.3.280.0100.03812.71
5.3.270.0050.04112.73
5.3.260.0110.04412.72
5.3.250.0080.04912.72
5.3.240.0090.04612.72
5.3.230.0050.04012.71
5.3.220.0080.03812.68
5.3.210.0070.03912.68
5.3.200.0070.03712.68
5.3.190.0070.03712.68
5.3.180.0070.03712.67
5.3.170.0090.03512.67
5.3.160.0060.03712.67
5.3.150.0040.04012.67
5.3.140.0070.03612.66
5.3.130.0070.03912.66
5.3.120.0060.03912.66
5.3.110.0070.03912.66
5.3.100.0050.04012.12
5.3.90.0080.03512.10
5.3.80.0070.03612.09
5.3.70.0080.03412.09
5.3.60.0100.03212.08
5.3.50.0050.03712.02
5.3.40.0050.03712.02
5.3.30.0040.03711.98
5.3.20.0050.03711.76
5.3.10.0060.03511.73
5.3.00.0040.03911.72
5.2.170.0010.0359.21
5.2.160.0040.0339.21
5.2.150.0060.0329.21
5.2.140.0080.0329.21
5.2.130.0060.0319.18
5.2.120.0030.0369.18
5.2.110.0040.0309.18
5.2.100.0040.0309.18
5.2.90.0040.0319.18
5.2.80.0040.0329.18
5.2.70.0050.0309.18
5.2.60.0060.0299.13
5.2.50.0100.0259.10
5.2.40.0090.0259.07
5.2.30.0060.0349.05
5.2.20.0090.0259.04
5.2.10.0040.0288.93
5.2.00.0050.0288.79
5.1.60.0040.0248.06
5.1.50.0040.0258.05
5.1.40.0070.0228.04
5.1.30.0040.0268.39
5.1.20.0030.0288.41
5.1.10.0020.0298.13
5.1.00.0050.0258.13
5.0.50.0020.0226.61
5.0.40.0030.0206.48
5.0.30.0030.0336.29
5.0.20.0030.0206.26
5.0.10.0040.0206.24
5.0.00.0030.0316.23
4.4.90.0030.0164.78
4.4.80.0030.0154.75
4.4.70.0050.0144.75
4.4.60.0030.0154.75
4.4.50.0020.0194.77
4.4.40.0020.0274.71
4.4.30.0030.0184.76
4.4.20.0030.0204.85
4.4.10.0040.0194.85
4.4.00.0020.0264.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0030.0154.63
4.3.80.0010.0264.59
4.3.70.0030.0144.63
4.3.60.0010.0164.62
4.3.50.0030.0164.63
4.3.40.0070.0204.53
4.3.30.0040.0143.29
4.3.20.0030.0153.26
4.3.10.0000.0173.22
4.3.00.0030.01714.47

preferences:
41.94 ms | 401 KiB | 5 Q