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_all("/\/(.*?)\//", $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.0170.00318.29
8.3.50.0100.00822.11
8.3.40.0080.00818.95
8.3.30.0080.00818.97
8.3.20.0050.00320.35
8.3.10.0040.00423.57
8.3.00.0050.00319.79
8.2.180.0140.00316.38
8.2.170.0150.00022.96
8.2.160.0040.01120.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0040.00421.13
8.2.110.0040.00721.16
8.2.100.0080.00417.91
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0000.00818.04
8.2.50.0050.00318.10
8.2.40.0000.00818.16
8.2.30.0000.00918.19
8.2.20.0040.00417.71
8.2.10.0000.00818.25
8.2.00.0040.00419.74
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0090.00023.96
8.1.230.0030.00817.70
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.48
8.1.180.0050.00318.10
8.1.170.0080.00018.76
8.1.160.0000.00722.05
8.1.150.0000.00718.84
8.1.140.0040.00417.61
8.1.130.0030.00317.78
8.1.120.0070.00017.65
8.1.110.0040.00417.60
8.1.100.0040.00417.52
8.1.90.0050.00217.65
8.1.80.0000.00717.64
8.1.70.0000.00717.49
8.1.60.0090.00017.72
8.1.50.0030.00717.57
8.1.40.0030.00517.68
8.1.30.0080.00017.76
8.1.20.0000.00717.77
8.1.10.0000.00817.67
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00718.34
8.0.270.0070.00017.28
8.0.260.0030.00317.30
8.0.250.0000.00617.00
8.0.240.0000.00717.07
8.0.230.0070.00016.98
8.0.220.0000.00717.08
8.0.210.0050.00317.01
8.0.200.0030.00317.11
8.0.190.0050.00317.03
8.0.180.0000.01017.01
8.0.170.0050.00317.07
8.0.160.0000.00716.93
8.0.150.0000.00716.96
8.0.140.0000.00817.00
8.0.130.0060.00013.51
8.0.120.0040.00416.93
8.0.110.0000.00717.00
8.0.100.0040.00416.92
8.0.90.0040.00417.10
8.0.80.0060.00917.05
8.0.70.0030.00517.11
8.0.60.0030.00616.93
8.0.50.0000.00716.92
8.0.30.0140.01117.21
8.0.20.0080.01017.40
8.0.10.0000.00716.97
8.0.00.0080.00816.94
7.4.330.0050.00015.04
7.4.320.0000.00716.58
7.4.300.0030.00316.57
7.4.290.0040.00216.70
7.4.280.0000.00716.57
7.4.270.0030.00316.61
7.4.260.0040.00416.73
7.4.250.0040.00416.73
7.4.240.0060.00116.72
7.4.230.0000.00716.47
7.4.220.0150.00916.80
7.4.210.0110.00416.87
7.4.200.0070.00016.84
7.4.160.0040.01216.70
7.4.150.0040.01417.40
7.4.140.0100.00817.86
7.4.130.0170.00316.70
7.4.120.0090.00716.60
7.4.110.0130.01016.89
7.4.100.0060.01016.56
7.4.90.0080.00816.44
7.4.80.0100.00719.39
7.4.70.0070.01016.54
7.4.60.0100.00716.51
7.4.50.0000.00916.40
7.4.40.0160.00016.73
7.4.30.0130.00916.66
7.4.00.0030.01014.88
7.3.330.0000.00613.11
7.3.320.0000.00513.28
7.3.310.0000.00716.34
7.3.300.0030.00316.31
7.3.290.0090.00616.38
7.3.280.0070.01016.36
7.3.270.0150.00317.40
7.3.260.0200.01716.51
7.3.250.0100.00916.38
7.3.240.0110.00516.72
7.3.230.0060.01116.50
7.3.210.0060.00916.42
7.3.200.0060.00919.39
7.3.190.0070.01016.31
7.3.180.0130.01016.53
7.3.170.0150.00616.61
7.3.160.0100.01016.41
7.3.120.0090.00615.01
7.2.330.0070.01016.91
7.2.320.0070.01016.57
7.2.310.0070.01116.77
7.2.300.0100.00716.78
7.2.290.0100.00616.65
7.2.00.0070.00719.56
7.1.100.0170.01416.36
7.1.70.0000.01217.03
7.1.60.0060.01519.70
7.1.50.0150.00617.19
7.1.00.0030.07722.50
7.0.200.0420.00714.73
7.0.140.0000.07721.92
7.0.60.0070.06019.95
7.0.50.0030.08717.75
7.0.40.0100.05720.42
7.0.30.0400.04320.09
7.0.20.0370.07720.20
7.0.10.0100.08020.11
7.0.00.0070.08720.25
5.6.280.0070.07021.11
5.6.210.0070.08320.50
5.6.200.0130.06718.21
5.6.190.0100.08320.60
5.6.180.3730.04020.60
5.6.170.0200.06320.48
5.6.160.0070.03720.54
5.6.150.0030.03718.18
5.6.140.0000.07718.11
5.6.130.0200.07318.15
5.6.120.0200.07021.01
5.6.110.0100.08321.02
5.6.100.0130.07321.08
5.6.90.0130.06320.97
5.6.80.0070.05320.58
5.5.350.0030.04320.49
5.5.340.0070.06017.96
5.5.330.0130.07720.21
5.5.320.0330.05020.34
5.5.310.0370.06020.32
5.5.300.0070.05318.02
5.5.290.0070.07717.91
5.5.280.0230.04720.80
5.5.270.0100.08320.86
5.5.260.0030.09020.87
5.5.250.0070.07020.68
5.5.240.0200.05320.22
5.4.450.0770.04719.54
5.4.440.0870.03719.36
5.4.430.0700.03319.32
5.4.420.0430.03719.38
5.4.410.0570.04719.16
5.4.400.0200.05019.07
5.4.390.0670.03019.22
5.4.380.0800.03719.13
5.4.370.0670.03319.18
5.4.360.0870.04018.86
5.4.350.0870.03018.86
5.4.340.0700.03019.05
5.4.320.0970.02718.96
5.4.310.0670.03319.04
5.4.300.0300.04719.21
5.4.290.0430.03018.83
5.4.280.0530.03719.05
5.4.270.0570.04018.99
5.4.260.1000.03719.16
5.4.250.0430.04319.15
5.4.240.0770.04019.05
5.4.230.0700.04319.03
5.4.220.0570.03318.97
5.4.210.0430.03319.18
5.4.200.0670.04019.12
5.4.190.0300.04719.00
5.4.180.0630.03718.82
5.4.170.0570.05719.20
5.4.160.0630.07719.04
5.4.150.0530.03718.84
5.4.140.0400.03716.50
5.4.130.0730.03016.37
5.4.120.0730.03016.49
5.4.110.0400.05016.43
5.4.100.0500.03716.54
5.4.90.0430.04016.51
5.4.80.0600.04016.26
5.4.70.0600.04016.50
5.4.60.0630.03016.33
5.4.50.0600.03716.26
5.4.40.0570.03716.53
5.4.30.0530.04016.26
5.4.20.0300.03016.48
5.4.10.0570.03716.40
5.4.00.0330.03716.26
5.3.290.0530.05316.31
5.3.280.0870.02716.31
5.3.270.0730.03716.31
5.3.260.0200.04316.26
5.3.250.0530.04016.26
5.3.240.0570.02716.26
5.3.230.0970.03016.26
5.3.220.0670.03316.26
5.3.210.0500.04016.26
5.3.200.0670.03316.26
5.3.190.0530.02716.26
5.3.180.0700.02716.26
5.3.170.0370.05016.26
5.3.160.0970.03716.26
5.3.150.0670.03316.26
5.3.140.0700.03716.26
5.3.130.0470.04316.26
5.3.120.0570.03016.26
5.3.110.0330.04316.26
5.3.100.0700.03316.26
5.3.90.0530.04016.26
5.3.80.0230.04016.26
5.3.70.0430.07316.26
5.3.60.0430.03316.26
5.3.50.0530.05016.26
5.3.40.0200.03016.26
5.3.30.0630.06316.26
5.3.20.0600.03316.26
5.3.10.0430.04316.26
5.3.00.0570.03716.26
5.2.170.0400.03316.26
5.2.160.0400.03016.26
5.2.150.0700.03716.26
5.2.140.0700.03316.26
5.2.130.0300.03716.26
5.2.120.0270.03316.26
5.2.110.0400.03716.26
5.2.100.0370.02716.26
5.2.90.0400.03016.26
5.2.80.0670.04016.26
5.2.70.0570.02716.26
5.2.60.0400.03316.26
5.2.50.0530.02316.26
5.2.40.0200.02716.26
5.2.30.0300.03316.26
5.2.20.0370.03716.26
5.2.10.0370.03016.26
5.2.00.0600.02716.26
5.1.60.0570.02016.26
5.1.50.0570.02016.26
5.1.40.0430.02316.26
5.1.30.0330.03316.26
5.1.20.0200.02016.26
5.1.10.0100.03016.26
5.1.00.0200.02316.26
5.0.50.0070.02316.26
5.0.40.0300.01716.26
5.0.30.0100.03016.26
5.0.20.0330.01316.26
5.0.10.0230.02316.26
5.0.00.0030.02716.26
4.4.90.0070.01716.26
4.4.80.0230.01716.26
4.4.70.0170.01316.26
4.4.60.0070.02016.26
4.4.50.0230.01016.26
4.4.40.0170.02316.26
4.4.30.0200.01316.26
4.4.20.0230.02016.26
4.4.10.0230.01716.26
4.4.00.0330.02016.26
4.3.110.0270.01716.26
4.3.100.0170.01316.26
4.3.90.0270.01016.26
4.3.80.0230.02316.26
4.3.70.0230.02716.26
4.3.60.0200.02016.26
4.3.50.0170.02016.26
4.3.40.0200.02016.26
4.3.30.0030.02016.26
4.3.20.0070.01316.26
4.3.10.0070.02316.26
4.3.00.0030.01716.26

preferences:
43.96 ms | 401 KiB | 5 Q