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; // preg_match("/(?<=#).*?(?=#)/", "1232#hello world#", $match); // preg_match("/(?<=\/).*?(?=#)/", "1232#/hello world#", $match); // preg_match("/(?<=\/).*?(?=(\/|\-))/", $input, $match); // preg_match("/(?<=\/)(.*)(?=\/)/", $input, $match); preg_match_all("/(?<=\/)(.*)(?=\/)/", $input, $match); print_r($match) // preg_match("/^.+?\](.+)$/is" , $string_text, $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.0140.01116.88
8.3.50.0150.00722.04
8.3.40.0070.00718.92
8.3.30.0100.00318.96
8.3.20.0080.00020.04
8.3.10.0000.00823.56
8.3.00.0030.00519.56
8.2.180.0100.01016.75
8.2.170.0130.00722.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0090.00021.09
8.2.110.0030.00622.15
8.2.100.0040.00718.03
8.2.90.0060.00319.26
8.2.80.0040.00417.97
8.2.70.0030.00617.74
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0070.00018.33
8.2.20.0020.00517.87
8.2.10.0070.00018.19
8.2.00.0030.00619.59
8.1.280.0060.01125.92
8.1.270.0080.00023.81
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.79
8.1.230.0040.00719.15
8.1.220.0060.00317.76
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0100.00018.71
8.1.160.0000.00721.97
8.1.150.0000.00718.80
8.1.140.0030.00617.59
8.1.130.0000.00817.83
8.1.120.0040.00417.67
8.1.110.0060.00317.52
8.1.100.0050.00317.62
8.1.90.0040.00417.61
8.1.80.0000.00817.50
8.1.70.0070.00017.53
8.1.60.0050.00317.64
8.1.50.0030.00617.65
8.1.40.0030.00617.70
8.1.30.0040.00417.70
8.1.20.0040.00417.81
8.1.10.0040.00417.66
8.1.00.0000.00917.61
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0000.00718.34
8.0.270.0030.00317.33
8.0.260.0000.00617.19
8.0.250.0070.00017.12
8.0.240.0030.00317.08
8.0.230.0030.00317.09
8.0.220.0000.00717.03
8.0.210.0020.00517.03
8.0.200.0030.00317.08
8.0.190.0000.00717.12
8.0.180.0060.00317.12
8.0.170.0040.00417.08
8.0.160.0000.01017.10
8.0.150.0030.00516.93
8.0.140.0080.00016.95
8.0.130.0060.00013.45
8.0.120.0080.00017.03
8.0.110.0040.00417.04
8.0.100.0050.00316.98
8.0.90.0030.00416.91
8.0.80.0040.01117.00
8.0.70.0000.00717.02
8.0.60.0000.00716.76
8.0.50.0040.00416.84
8.0.30.0150.00717.01
8.0.20.0120.00817.43
8.0.10.0030.00516.93
8.0.00.0110.00616.87
7.4.330.0000.00615.00
7.4.320.0030.00316.79
7.4.300.0000.00716.72
7.4.290.0040.00416.65
7.4.280.0000.00716.74
7.4.270.0000.00716.65
7.4.260.0000.00716.61
7.4.250.0000.00916.70
7.4.240.0040.00416.74
7.4.230.0070.00016.72
7.4.220.0120.00616.52
7.4.210.0070.00716.64
7.4.200.0040.00416.77
7.4.160.0060.00916.86
7.4.150.0080.01717.40
7.4.140.0110.00817.86
7.4.130.0050.01216.64
7.4.120.0040.01316.72
7.4.110.0170.00016.65
7.4.100.0090.00916.69
7.4.90.0100.00616.57
7.4.80.0090.01219.39
7.4.70.0060.01216.69
7.4.60.0040.01116.69
7.4.50.0030.00616.70
7.4.40.0100.00716.54
7.4.30.0000.01616.67
7.4.00.0070.01014.82
7.3.330.0030.00313.34
7.3.320.0000.00513.32
7.3.310.0000.00716.55
7.3.300.0030.00516.41
7.3.290.0100.00716.48
7.3.280.0060.01016.39
7.3.270.0090.00917.40
7.3.260.0110.00716.90
7.3.250.0090.01216.59
7.3.240.0100.00716.68
7.3.230.0130.00316.40
7.3.210.0060.01216.68
7.3.200.0080.00819.39
7.3.190.0090.01316.60
7.3.180.0070.01416.50
7.3.170.0100.00716.47
7.3.160.0090.00616.40
7.3.120.0060.01114.89
7.2.330.0140.00616.90
7.2.320.0030.01416.84
7.2.310.0130.00316.77
7.2.300.0080.01016.55
7.2.290.0100.00716.73
7.2.00.0040.00719.75
7.1.100.0000.01318.01
7.1.70.0000.01417.28
7.1.60.0180.00319.70
7.1.50.0110.01117.19
7.1.00.0030.07722.29
7.0.200.0040.00416.91
7.0.140.0000.07722.04
7.0.60.0170.06719.93
7.0.50.0100.08017.96
7.0.40.0070.09020.34
7.0.30.0270.08020.11
7.0.20.0230.07720.27
7.0.10.0030.07320.20
7.0.00.0070.05320.09
5.6.280.0170.06321.06
5.6.210.0100.09020.76
5.6.200.0030.04018.29
5.6.190.0100.05020.63
5.6.180.0300.05020.33
5.6.170.0330.07320.55
5.6.160.0070.09020.50
5.6.150.0000.07018.29
5.6.140.0070.04018.14
5.6.130.0070.04018.18
5.6.120.0070.05320.88
5.6.110.0070.07321.02
5.6.100.0070.05320.97
5.6.90.0070.08021.01
5.6.80.0130.06320.49
5.5.350.0100.06720.49
5.5.340.0100.03717.98
5.5.330.0170.03020.35
5.5.320.1730.06020.27
5.5.310.0300.07720.31
5.5.300.0100.07718.03
5.5.290.0070.07317.95
5.5.280.0030.04720.76
5.5.270.0030.09020.77
5.5.260.0070.05020.86
5.5.250.0130.07720.48
5.5.240.0170.07020.36
5.4.450.0570.04019.64
5.4.440.0630.03719.18
5.4.430.0670.04319.31
5.4.420.0600.04319.45
5.4.410.0230.05019.39
5.4.400.0300.03319.00
5.4.390.0500.04018.95
5.4.380.0470.03719.15
5.4.370.0430.03319.04
5.4.360.0430.04719.22
5.4.350.0630.03319.13
5.4.340.0870.03719.13
5.4.320.0870.02318.96
5.4.310.0100.03018.95
5.4.300.0670.02318.94
5.4.290.0870.03018.86
5.4.280.0730.04319.05
5.4.270.0570.05319.13
5.4.260.0270.05019.16
5.4.250.0400.04719.18
5.4.240.0730.05319.21
5.4.230.0370.04319.31
5.4.220.0800.03019.21
5.4.210.0400.04018.82
5.4.200.0670.03719.05
5.4.190.0500.05319.15
5.4.180.0470.04018.95
5.4.170.0730.04019.02
5.4.160.0670.04319.17
5.4.150.0600.05318.97
5.4.140.0330.03316.66
5.4.130.0530.05316.32
5.4.120.0700.04016.50
5.4.110.0670.03716.23
5.4.100.0330.04016.45
5.4.90.0530.03716.55
5.4.80.0570.03316.50
5.4.70.0430.03716.57
5.4.60.0300.05016.43
5.4.50.0700.04316.35
5.4.40.0400.03716.48
5.4.30.0530.03716.40
5.4.20.0330.04016.42
5.4.10.0430.04316.16
5.4.00.0470.05015.79
5.3.290.0600.04316.19
5.3.280.0600.04016.19
5.3.270.0500.04315.27
5.3.260.0700.03315.27
5.3.250.0530.05315.27
5.3.240.0730.07015.27
5.3.230.0470.04315.27
5.3.220.0670.04015.27
5.3.210.0500.05015.27
5.3.200.0430.03315.27
5.3.190.0430.03715.27
5.3.180.0330.03015.27
5.3.170.0630.04015.27
5.3.160.0230.03715.27
5.3.150.0570.03015.27
5.3.140.0470.03315.27
5.3.130.0700.04715.27
5.3.120.0570.03315.27
5.3.110.0400.05715.27
5.3.100.0800.06015.27
5.3.90.0770.03315.27
5.3.80.0770.03715.27
5.3.70.0470.03715.27
5.3.60.0630.03715.27
5.3.50.0870.03315.27
5.3.40.0530.03715.27
5.3.30.0700.04015.27
5.3.20.0730.06315.27
5.3.10.0300.03315.27
5.3.00.0530.03315.27
5.2.170.0730.02715.27
5.2.160.0800.02315.27
5.2.150.0100.04015.27
5.2.140.0630.06015.27
5.2.130.0400.03015.27
5.2.120.0300.02315.27
5.2.110.0230.02715.27
5.2.100.0530.03315.27
5.2.90.0530.03715.27
5.2.80.0330.03315.26
5.2.70.0530.03315.26
5.2.60.0600.03315.26
5.2.50.0400.03715.26
5.2.40.0470.04015.26
5.2.30.0730.03715.26
5.2.20.0370.02715.26
5.2.10.0600.02715.26
5.2.00.0430.02715.26
5.1.60.0530.02015.26
5.1.50.0530.02015.26
5.1.40.0530.02715.26
5.1.30.0330.04015.26
5.1.20.0030.02015.26
5.1.10.0170.02715.26
5.1.00.0500.02015.26
5.0.50.0200.02015.26
5.0.40.0130.01715.26
5.0.30.0100.03315.26
5.0.20.0200.02015.26
5.0.10.0030.02315.26
5.0.00.0130.03315.26
4.4.90.0100.01315.26
4.4.80.0130.01715.26
4.4.70.0300.01315.26
4.4.60.0270.01715.26
4.4.50.0330.01315.26
4.4.40.0100.03015.26
4.4.30.0130.02015.26
4.4.20.0030.01315.26
4.4.10.0230.01715.26
4.4.00.0230.01715.26
4.3.110.0200.01315.26
4.3.100.0200.01715.26
4.3.90.0100.01715.26
4.3.80.0170.02315.26
4.3.70.0170.01315.26
4.3.60.0270.01715.26
4.3.50.0070.02015.26
4.3.40.0330.01715.26
4.3.30.0030.02315.26
4.3.20.0030.02015.26
4.3.10.0000.02315.26
4.3.00.0070.02015.26

preferences:
36.52 ms | 401 KiB | 5 Q