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("/(?<=#).*?(?=#)/", "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.0160.00616.88
8.3.50.0150.00722.05
8.3.40.0070.00718.68
8.3.30.0080.00819.04
8.3.20.0050.00320.25
8.3.10.0040.00423.64
8.3.00.0080.00019.55
8.2.180.0060.01216.38
8.2.170.0070.00722.96
8.2.160.0150.00020.55
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00220.02
8.2.110.0000.01121.09
8.2.100.0120.00317.97
8.2.90.0050.00318.03
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00917.89
8.2.50.0030.00618.07
8.2.40.0050.00218.16
8.2.30.0000.00718.27
8.2.20.0000.00717.75
8.2.10.0040.00418.14
8.2.00.0060.00317.99
8.1.280.0040.01125.92
8.1.270.0090.00024.01
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0120.00622.53
8.1.230.0060.00620.83
8.1.220.0060.00317.78
8.1.210.0000.00819.04
8.1.200.0000.00917.50
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0060.00318.69
8.1.160.0000.00722.04
8.1.150.0040.00418.86
8.1.140.0000.00717.51
8.1.130.0030.00317.71
8.1.120.0000.00717.61
8.1.110.0030.00517.50
8.1.100.0040.00417.46
8.1.90.0040.00417.58
8.1.80.0050.00317.62
8.1.70.0040.00417.53
8.1.60.0080.00017.64
8.1.50.0090.00017.54
8.1.40.0030.00517.63
8.1.30.0030.00617.80
8.1.20.0000.00817.70
8.1.10.0040.00417.55
8.1.00.0000.00817.52
8.0.300.0050.00320.03
8.0.290.0000.00816.88
8.0.280.0070.00018.46
8.0.270.0030.00317.15
8.0.260.0030.00317.27
8.0.250.0000.00816.98
8.0.240.0030.00317.09
8.0.230.0030.00317.08
8.0.220.0030.00316.97
8.0.210.0000.00717.13
8.0.200.0030.00317.05
8.0.190.0070.00016.96
8.0.180.0000.01016.93
8.0.170.0000.00717.00
8.0.160.0040.00416.99
8.0.150.0030.00317.04
8.0.140.0000.00816.98
8.0.130.0030.00313.43
8.0.120.0000.00716.99
8.0.110.0050.00316.98
8.0.100.0030.00516.89
8.0.90.0040.00416.95
8.0.80.0040.01116.98
8.0.70.0030.00517.02
8.0.60.0000.00717.03
8.0.50.0000.00917.14
8.0.30.0130.00517.13
8.0.20.0090.01117.46
8.0.10.0000.00816.99
8.0.00.0070.01017.00
7.4.330.0000.00515.04
7.4.320.0030.00316.65
7.4.300.0060.00016.66
7.4.290.0040.00416.75
7.4.280.0030.00316.73
7.4.270.0050.00216.70
7.4.260.0000.00816.59
7.4.250.0080.00016.71
7.4.240.0010.00616.70
7.4.230.0040.00416.69
7.4.220.0000.01816.65
7.4.210.0060.00916.77
7.4.200.0080.00016.50
7.4.160.0110.00616.61
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0080.00916.62
7.4.120.0080.01216.68
7.4.110.0140.00416.77
7.4.100.0070.01116.70
7.4.90.0100.00716.55
7.4.80.0140.00319.39
7.4.70.0080.00816.59
7.4.60.0110.00416.78
7.4.50.0040.00416.82
7.4.40.0110.00716.51
7.4.30.0130.00316.54
7.4.00.0070.00614.99
7.3.330.0020.00213.15
7.3.320.0020.00213.14
7.3.310.0050.00316.27
7.3.300.0040.00416.43
7.3.290.0040.01116.52
7.3.280.0100.00716.40
7.3.270.0050.01117.40
7.3.260.0120.01216.45
7.3.250.0060.01216.66
7.3.240.0080.00816.36
7.3.230.0060.00916.45
7.3.210.0060.01016.26
7.3.200.0060.01019.39
7.3.190.0120.00916.79
7.3.180.0060.00916.63
7.3.170.0100.00716.67
7.3.160.0130.00316.58
7.3.120.0080.00214.99
7.3.110.0070.00414.76
7.3.100.0110.00014.68
7.3.90.0040.00715.16
7.3.80.0040.00714.87
7.3.70.0000.01115.21
7.3.60.0060.00615.14
7.3.50.0050.00714.88
7.3.40.0060.00614.90
7.3.30.0040.00814.95
7.3.20.0090.00616.86
7.3.10.0130.00316.89
7.3.00.0050.00416.90
7.2.330.0030.01416.73
7.2.320.0030.01416.75
7.2.310.0130.00316.78
7.2.300.0110.00616.79
7.2.290.0060.01816.69
7.2.250.0040.00814.95
7.2.240.0040.00815.10
7.2.230.0080.00415.28
7.2.220.0000.01214.92
7.2.210.0040.00815.28
7.2.200.0030.00915.12
7.2.190.0030.00915.14
7.2.180.0000.01215.17
7.2.170.0030.00915.06
7.2.00.0090.00319.75
7.1.330.0070.00315.73
7.1.320.0070.00315.75
7.1.310.0040.00715.84
7.1.300.0060.00616.01
7.1.290.0000.01216.04
7.1.280.0070.00415.72
7.1.270.0060.00315.57
7.1.260.0040.00815.96
7.1.100.0070.00417.98
7.1.70.0040.00417.15
7.1.60.0130.01019.70
7.1.50.0070.01417.16
7.1.00.0070.07322.59
7.0.200.0000.00816.87
7.0.140.0030.07722.09
7.0.60.0170.07719.93
7.0.50.0100.06717.88
7.0.40.0130.07720.13
7.0.30.0200.07020.25
7.0.20.0300.08020.27
7.0.10.0130.07720.24
7.0.00.0100.08720.21
5.6.280.0000.07721.02
5.6.210.0170.07320.52
5.6.200.0070.05318.17
5.6.190.0170.04720.55
5.6.180.0470.06320.61
5.6.170.0230.04720.52
5.6.160.0070.08320.54
5.6.150.0070.08718.17
5.6.140.0030.05718.13
5.6.130.0100.08018.14
5.6.120.0100.08321.10
5.6.110.0070.04021.02
5.6.100.0070.08021.08
5.6.90.0000.09320.88
5.6.80.0100.05020.41
5.5.350.0100.05320.40
5.5.340.0130.07718.03
5.5.330.0030.05020.13
5.5.320.1700.06320.32
5.5.310.0430.07320.26
5.5.300.0000.08717.95
5.5.290.0100.08718.08
5.5.280.0000.04720.87
5.5.270.0030.08020.88
5.5.260.0100.08020.73
5.5.250.0070.06320.57
5.5.240.0130.07020.15
5.4.450.0570.04019.64
5.4.440.0630.04019.38
5.4.430.0700.04719.39
5.4.420.0670.04019.48
5.4.410.0800.03719.16
5.4.400.0730.03719.04
5.4.390.0430.03718.99
5.4.380.0600.06018.83
5.4.370.0400.04019.04
5.4.360.0630.04719.31
5.4.350.0570.04019.24
5.4.340.0830.04319.13
5.4.320.0600.05019.05
5.4.310.0300.05319.19
5.4.300.0330.03719.21
5.4.290.0570.03019.14
5.4.280.0470.04319.30
5.4.270.0270.03318.85
5.4.260.0530.03319.23
5.4.250.0330.03718.96
5.4.240.0330.04319.30
5.4.230.0500.03719.21
5.4.220.0700.03019.12
5.4.210.0630.04318.98
5.4.200.0730.04019.21
5.4.190.0470.04019.20
5.4.180.0900.03019.15
5.4.170.0930.04019.16
5.4.160.0330.05719.19
5.4.150.0670.03719.11
5.4.140.0730.02716.51
5.4.130.1130.03316.32
5.4.120.0730.03316.34
5.4.110.0530.03316.56
5.4.100.0770.02716.45
5.4.90.0900.03716.55
5.4.80.0870.03016.54
5.4.70.0800.03716.34
5.4.60.0570.03316.43
5.4.50.0700.03316.16
5.4.40.0630.04716.40
5.4.30.0570.03716.21
5.4.20.0970.03016.32
5.4.10.0370.04316.52
5.4.00.0670.03715.75
5.3.290.0430.05315.27
5.3.280.0030.03715.27
5.3.270.0470.06015.27
5.3.260.0930.04015.27
5.3.250.1000.03715.27
5.3.240.0730.03315.27
5.3.230.0630.04315.27
5.3.220.0470.04315.27
5.3.210.0770.02715.27
5.3.200.0470.03315.26
5.3.190.0730.04015.26
5.3.180.0230.04015.26
5.3.170.0730.03715.26
5.3.160.0830.03015.26
5.3.150.0600.05315.26
5.3.140.0530.03315.26
5.3.130.0430.04015.26
5.3.120.0870.02315.26
5.3.110.0200.03715.26
5.3.100.0530.04015.26
5.3.90.0500.04015.26
5.3.80.0600.04315.26
5.3.70.0230.04715.26
5.3.60.0530.03715.26
5.3.50.0830.03315.26
5.3.40.0400.03315.26
5.3.30.0800.04315.26
5.3.20.0600.03715.26
5.3.10.0900.04015.26
5.3.00.0700.03315.26
5.2.170.0130.03715.26
5.2.160.0500.02315.26
5.2.150.0630.03015.26
5.2.140.0200.03015.26
5.2.130.0700.02015.26
5.2.120.0630.03015.26
5.2.110.0500.03315.26
5.2.100.0330.03015.26
5.2.90.0430.02715.26
5.2.80.0500.03715.26
5.2.70.0800.03315.26
5.2.60.0330.03715.26
5.2.50.0300.03715.26
5.2.40.0430.03015.26
5.2.30.0330.03315.26
5.2.20.0600.02315.26
5.2.10.0000.02315.26
5.2.00.0470.02715.26
5.1.60.0170.03315.26
5.1.50.0270.04015.26
5.1.40.0400.02015.26
5.1.30.0330.03315.26
5.1.20.0430.02315.26
5.1.10.0430.02715.26
5.1.00.0500.02715.26
5.0.50.0330.01715.26
5.0.40.0030.02315.26
5.0.30.0300.03015.26
5.0.20.0230.02315.25
5.0.10.0200.02015.25
5.0.00.0230.03015.25
4.4.90.0000.01315.26
4.4.80.0300.02015.26
4.4.70.0230.01315.26
4.4.60.0130.02015.26
4.4.50.0300.01315.26
4.4.40.0030.03015.26
4.4.30.0130.01715.26
4.4.20.0100.02015.26
4.4.10.0170.01315.26
4.4.00.0130.02315.26
4.3.110.0300.01715.26
4.3.100.0100.01715.25
4.3.90.0100.01715.25
4.3.80.0070.03015.25
4.3.70.0130.01715.25
4.3.60.0270.01715.25
4.3.50.0170.02015.25
4.3.40.0300.02315.25
4.3.30.0100.01715.25
4.3.20.0130.01715.25
4.3.10.0100.02015.25
4.3.00.0130.01315.25

preferences:
33.54 ms | 401 KiB | 5 Q