3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re1=".*?"; # Non-greedy match on filler $re2="(\\[)"; # Any Single Character 1 $re3="(n)"; # Any Single Character 2 $re4="(i)"; # Any Single Character 3 $re5="(d)"; # Any Single Character 4 $re6="(:)"; # Any Single Character 5 $txt="iasduad iiabefibasdib [nid:112] oabsdo baosd [10] [n10]"; if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $txt, $matches)) { $c1=$matches[1][0]; $c2=$matches[2][0]; $c3=$matches[3][0]; $c4=$matches[4][0]; $c5=$matches[5][0]; print "($c1) ($c2) ($c3) ($c4) ($c5) \n"; }

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.0080.00816.50
8.3.50.0080.00922.79
8.3.40.0070.00718.47
8.3.30.0140.00018.84
8.3.20.0000.00720.25
8.3.10.0000.00923.37
8.3.00.0040.00417.34
8.2.180.0090.00916.50
8.2.170.0150.00022.96
8.2.160.0070.00720.38
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.16
8.2.110.0090.00022.27
8.2.100.0000.01217.59
8.2.90.0040.00418.93
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0040.00817.88
8.2.50.0060.00318.07
8.2.40.0000.00718.03
8.2.30.0040.00417.84
8.2.20.0030.00517.57
8.2.10.0000.00718.04
8.2.00.0070.00017.64
8.1.280.0100.01025.92
8.1.270.0030.00623.92
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00023.78
8.1.230.0030.00719.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.13
8.1.190.0090.00017.10
8.1.180.0030.00518.91
8.1.170.0030.00518.60
8.1.160.0040.00421.95
8.1.150.0000.00718.88
8.1.140.0040.00417.41
8.1.130.0000.00817.81
8.1.120.0030.00317.32
8.1.110.0050.00317.36
8.1.100.0000.00717.30
8.1.90.0000.00717.41
8.1.80.0030.00317.41
8.1.70.0070.00017.38
8.1.60.0040.00417.38
8.1.50.0040.00417.34
8.1.40.0020.00517.41
8.1.30.0000.00817.59
8.1.20.0080.00017.60
8.1.10.0040.00417.41
8.1.00.0030.00517.38
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.24
8.0.270.0030.00316.73
8.0.260.0000.00617.09
8.0.250.0060.00016.84
8.0.240.0050.00516.77
8.0.230.0030.00316.86
8.0.220.0000.00716.72
8.0.210.0080.00016.86
8.0.200.0030.00316.72
8.0.190.0030.00316.79
8.0.180.0000.00716.79
8.0.170.0040.00416.73
8.0.160.0050.00316.92
8.0.150.0030.00516.77
8.0.140.0030.00616.77
8.0.130.0030.00313.20
8.0.120.0040.00416.72
8.0.110.0040.00416.87
8.0.100.0030.00316.70
8.0.90.0040.00416.82
8.0.80.0110.00616.85
8.0.70.0040.00416.88
8.0.60.0040.00416.86
8.0.50.0000.00716.80
8.0.30.0080.01117.02
8.0.20.0130.00617.40
8.0.10.0050.00216.73
8.0.00.0120.00716.60
7.4.330.0020.00215.03
7.4.320.0060.00016.53
7.4.300.0000.00616.57
7.4.290.0030.00516.52
7.4.280.0090.00016.52
7.4.270.0000.00716.37
7.4.260.0050.00216.50
7.4.250.0040.00416.26
7.4.240.0040.00316.44
7.4.230.0030.00316.22
7.4.220.0140.00316.52
7.4.210.0090.01216.39
7.4.200.0000.00716.52
7.4.160.0030.01316.44
7.4.150.0060.01317.40
7.4.140.0100.01017.86
7.4.130.0080.00816.42
7.4.120.0100.00716.42
7.4.110.0090.00616.32
7.4.100.0130.00316.47
7.4.90.0110.00416.33
7.4.80.0130.00719.39
7.4.70.0100.00716.19
7.4.60.0130.00316.21
7.4.50.0000.00416.34
7.4.40.0100.00716.60
7.4.30.0060.00916.35
7.4.00.0070.01014.80
7.3.330.0000.00612.84
7.3.320.0000.00512.91
7.3.310.0040.00415.96
7.3.300.0030.00316.09
7.3.290.0090.00416.09
7.3.280.0070.01116.12
7.3.270.0070.01117.40
7.3.260.0120.00416.38
7.3.250.0090.00916.26
7.3.240.0160.00616.26
7.3.230.0060.01316.39
7.3.210.0030.01316.17
7.3.200.0040.01419.39
7.3.190.0110.00716.19
7.3.180.0080.00816.05
7.3.170.0110.00716.37
7.3.160.0060.00916.13
7.3.10.0040.01116.40
7.3.00.0060.00616.34
7.2.330.0130.01016.32
7.2.320.0030.01616.54
7.2.310.0120.00916.61
7.2.300.0030.01316.13
7.2.290.0080.00816.46
7.2.130.0130.00016.83
7.2.120.0060.00616.43
7.2.110.0060.01116.82
7.2.100.0120.00316.50
7.2.90.0040.01116.90
7.2.80.0030.00616.73
7.2.70.0040.01116.64
7.2.60.0090.00316.79
7.2.50.0000.01216.53
7.2.40.0060.00616.79
7.2.30.0030.01216.74
7.2.20.0000.01516.39
7.2.10.0100.00316.77
7.2.00.0100.00917.99
7.1.250.0060.00615.51
7.1.240.0000.00915.63
7.1.230.0060.00615.62
7.1.220.0070.00715.52
7.1.210.0000.01015.34
7.1.200.0120.00315.61
7.1.190.0030.00615.58
7.1.180.0140.00015.68
7.1.170.0080.00015.61
7.1.160.0040.00815.45
7.1.150.0060.00615.46
7.1.140.0110.00415.80
7.1.130.0000.00915.49
7.1.120.0070.01015.71
7.1.110.0050.00315.70
7.1.100.0070.00716.67
7.1.90.0040.00415.56
7.1.80.0030.00615.58
7.1.70.0110.00216.21
7.1.60.0030.00916.46
7.1.50.0080.00616.20
7.1.40.0000.01315.72
7.1.30.0070.00715.56
7.1.20.0000.01315.52
7.1.10.0030.00715.66
7.1.00.0030.04318.97
7.0.330.0030.01215.22
7.0.320.0000.01215.19
7.0.310.0040.00815.41
7.0.300.0030.00614.91
7.0.290.0060.00615.28
7.0.280.0030.01215.08
7.0.270.0030.00615.06
7.0.260.0050.00515.30
7.0.250.0110.00315.06
7.0.240.0030.01215.29
7.0.230.0060.00615.09
7.0.220.0060.00615.33
7.0.210.0030.01015.08
7.0.200.0050.01116.01
7.0.190.0030.00615.03
7.0.180.0040.01114.98
7.0.170.0100.00315.25
7.0.160.0050.00515.11
7.0.150.0030.00615.32
7.0.140.0020.04218.63
7.0.130.0060.01115.03
7.0.120.0070.00715.38
7.0.110.0090.00315.19
7.0.100.0070.00015.44
7.0.90.0000.01015.27
7.0.80.0070.00415.24
7.0.70.0080.00015.40
7.0.60.0050.02217.62
7.0.50.0060.02216.51
7.0.40.0040.03916.65
7.0.30.0270.03316.67
7.0.20.0120.02216.76
7.0.10.0070.04516.59
7.0.00.0070.04016.65
5.6.380.0070.00414.15
5.6.370.0000.01414.23
5.6.360.0070.00314.16
5.6.350.0100.00713.85
5.6.340.0070.00714.16
5.6.330.0030.00714.23
5.6.320.0070.00714.46
5.6.310.0130.00014.51
5.6.300.0040.00714.55
5.6.290.0090.00314.11
5.6.280.0050.04217.48
5.6.270.0000.00814.18
5.6.260.0120.00314.04
5.6.250.0060.00914.29
5.6.240.0080.00414.08
5.6.230.0060.00614.15
5.6.220.0090.00614.16
5.6.210.0060.04617.35
5.6.200.0130.03716.13
5.6.190.0120.02417.41
5.6.180.0130.02517.31
5.6.170.0170.04517.32
5.6.160.0070.04417.37
5.6.150.0070.04216.32
5.6.140.0070.04316.08
5.6.130.0070.04116.05
5.6.120.0050.02517.75
5.6.110.0100.03717.73
5.6.100.0020.02717.52
5.6.90.0100.03217.42
5.6.80.0140.03517.25
5.6.70.2280.02017.33
5.6.60.0130.00313.86
5.6.50.0050.00514.24
5.6.40.0100.00313.96
5.6.30.0000.01313.85
5.6.20.0060.00313.93
5.6.10.0070.00714.00
5.6.00.0000.01514.18
5.5.380.0060.00310.86
5.5.370.0080.00410.85
5.5.360.0040.00710.89
5.5.350.0160.03115.65
5.5.340.0030.02014.45
5.5.330.0070.04615.67
5.5.320.0150.02815.59
5.5.310.0170.02015.56
5.5.300.0050.03714.58
5.5.290.0020.04414.42
5.5.280.0030.02515.95
5.5.270.0020.04815.76
5.5.260.0060.04815.96
5.5.250.0050.03615.88
5.5.240.0120.02515.57
5.5.230.0000.00710.56
5.5.220.0030.00310.86
5.5.210.0090.00010.91
5.5.200.0080.00010.89
5.5.190.0070.00310.96
5.5.180.0060.00310.61
5.5.170.0040.00810.87
5.5.160.0040.00410.89
5.5.150.0030.00911.03
5.5.140.0000.01210.65
5.5.130.0000.00910.93
5.5.120.0030.00310.73
5.5.110.0000.01010.79
5.5.100.0060.00310.65
5.5.90.0030.00610.91
5.5.80.0080.00310.72
5.5.70.0060.00010.86
5.5.60.0030.00610.51
5.5.50.0000.00810.68
5.5.40.0030.00510.94
5.5.30.0100.00010.62
5.5.20.0040.00810.92
5.5.10.0040.00710.95
5.5.00.0030.00610.87
5.4.450.0950.02215.08
5.4.440.0720.02715.11
5.4.430.0050.01815.12
5.4.420.0030.02015.12
5.4.410.0440.02815.05
5.4.400.0810.02014.89
5.4.390.0980.02114.91
5.4.380.0980.02214.83
5.4.370.0970.02014.94
5.4.360.1050.02714.83
5.4.350.0490.02314.90
5.4.340.0000.03015.09
5.4.330.0070.00310.50
5.4.320.0050.02014.79
5.4.310.0060.02314.67
5.4.300.0850.02014.90
5.4.290.0920.02514.96
5.4.280.1050.02314.60
5.4.270.0660.02414.79
5.4.260.0030.02914.74
5.4.250.0070.02114.91
5.4.240.0630.02315.07
5.4.230.1040.02414.84
5.4.220.0700.02615.04
5.4.210.0860.02114.88
5.4.200.0890.02214.75
5.4.190.0650.02714.80
5.4.180.0020.02514.90
5.4.170.0040.02014.78
5.4.160.0710.02214.88
5.4.150.0530.02114.79
5.4.140.0000.02813.41
5.4.130.0040.02113.71
5.4.120.0040.03713.61
5.4.110.0970.02013.40
5.4.100.0930.02413.68
5.4.90.0670.02013.47
5.4.80.0080.02213.60
5.4.70.0080.03013.40
5.4.60.0520.02413.60
5.4.50.1050.02013.60
5.4.40.0900.01913.57
5.4.30.0850.02013.56
5.4.20.0830.02013.47
5.4.10.0700.01813.61
5.4.00.0680.02113.27
5.3.290.1100.02712.48
5.3.280.0920.02512.35
5.3.270.1050.02712.37
5.3.260.0850.02012.38
5.3.250.0730.02312.35
5.3.240.0050.03912.36
5.3.230.0060.03612.31
5.3.220.0670.02212.34
5.3.210.0930.02012.28
5.3.200.0900.02312.29
5.3.190.1060.02212.37
5.3.180.1000.02712.47
5.3.170.1100.02012.27
5.3.160.0900.02612.40
5.3.150.1100.02112.35
5.3.140.0930.02312.33
5.3.130.1120.02112.31
5.3.120.0810.02412.30
5.3.110.0020.02512.39
5.3.100.0110.02611.94
5.3.90.0670.03312.04
5.3.80.1000.02512.00
5.3.70.0950.02312.04
5.3.60.0950.03112.07
5.3.50.1030.02111.97
5.3.40.0930.02311.98
5.3.30.1030.02211.96
5.3.20.0780.03011.93
5.3.10.0970.01611.74
5.3.00.0900.02911.78
5.2.170.0580.01810.24
5.2.160.0050.02310.21
5.2.150.0000.02410.21
5.2.140.0170.02110.21
5.2.130.0850.01910.13
5.2.120.0810.01810.00
5.2.110.0950.01510.27
5.2.100.0790.01910.29
5.2.90.0950.02010.11
5.2.80.0760.02010.12
5.2.70.0770.02010.06
5.2.60.0770.01810.03
5.2.50.0900.01810.09
5.2.40.0740.01710.15
5.2.30.0820.02010.04
5.2.20.0600.0159.94
5.2.10.0630.01510.03
5.2.00.0650.0159.84
5.1.60.0650.0129.33
5.1.50.0600.0159.30
5.1.40.0560.0129.20
5.1.30.0680.0169.48
5.1.20.0660.0139.43
5.1.10.0730.0179.31
5.1.00.0750.0129.27
5.0.50.0380.0148.56
5.0.40.0410.0128.41
5.0.30.0380.0208.45
5.0.20.0430.0158.43
5.0.10.0370.0158.42
5.0.00.0360.0158.30
4.4.90.0320.0088.12
4.4.80.0250.0108.12
4.4.70.0420.0138.12
4.4.60.0320.0108.12
4.4.50.0380.0088.12
4.4.40.0320.0158.12
4.4.30.0030.0108.12
4.4.20.0030.0188.12
4.4.10.0050.0168.12
4.4.00.0020.0308.12
4.3.110.0020.0128.12
4.3.100.0020.0138.12
4.3.90.0020.0128.12
4.3.80.0100.0278.12
4.3.70.0280.0088.12
4.3.60.0420.0138.12
4.3.50.0270.0108.12
4.3.40.0370.0158.12
4.3.30.0180.0128.12
4.3.20.0220.0088.12
4.3.10.0170.0098.12
4.3.00.0170.0108.12

preferences:
42.01 ms | 401 KiB | 5 Q