3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is my string but it also has %APP:name_of_the_app|ID:123123123% a bunch of other stuff in it"; $apps = array(); if (preg_match_all("/%APP:(.*?)\|ID:([0-9]+)%/", $string, $matches)) { for ($i = 0; $i < count($matches[0]); $i++) { $apps[] = array( "name" => $matches[1][$i], "id" => $matches[2][$i] ); } } print_r($apps);

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.0090.00618.56
8.3.50.0200.01322.11
8.3.40.0000.01418.95
8.3.30.0120.00318.97
8.3.20.0080.00019.02
8.3.10.0080.00021.07
8.3.00.0040.00421.95
8.2.180.0110.00416.88
8.2.170.0090.00622.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00321.23
8.2.110.0100.00020.57
8.2.100.0060.00617.91
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0030.00617.72
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0030.00517.91
8.2.30.0040.00421.31
8.2.20.0000.00717.87
8.2.10.0000.00817.89
8.2.00.0060.00317.84
8.1.280.0120.00925.92
8.1.270.0070.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00322.46
8.1.230.0030.00720.85
8.1.220.0040.00418.77
8.1.210.0000.00818.77
8.1.200.0070.00417.48
8.1.190.0000.00717.39
8.1.180.0040.00418.10
8.1.170.0060.00318.75
8.1.160.0060.00318.82
8.1.150.0090.00018.79
8.1.140.0030.00617.52
8.1.130.0070.00017.82
8.1.120.0060.00317.59
8.1.110.0030.00617.53
8.1.100.0040.00417.59
8.1.90.0000.00717.46
8.1.80.0040.00417.61
8.1.70.0030.00317.52
8.1.60.0060.00317.70
8.1.50.0000.00917.65
8.1.40.0070.00017.70
8.1.30.0000.00817.84
8.1.20.0050.00317.69
8.1.10.0030.00617.76
8.1.00.0000.01117.57
8.0.300.0060.00319.85
8.0.290.0060.00317.16
8.0.280.0030.00318.40
8.0.270.0000.01017.11
8.0.260.0070.00016.90
8.0.250.0000.00716.93
8.0.240.0080.00016.97
8.0.230.0000.00717.01
8.0.220.0080.00016.95
8.0.210.0030.00516.93
8.0.200.0000.00616.92
8.0.190.0050.00217.09
8.0.180.0050.00217.04
8.0.170.0000.00717.02
8.0.160.0040.00416.91
8.0.150.0050.00516.89
8.0.140.0040.00417.08
8.0.130.0030.00313.55
8.0.120.0070.00016.91
8.0.110.0040.00417.09
8.0.100.0050.00316.90
8.0.90.0000.00716.97
8.0.80.0060.00917.08
8.0.70.0050.00216.97
8.0.60.0040.00416.86
8.0.50.0000.00817.06
8.0.30.0100.01017.46
8.0.20.0120.00617.42
8.0.10.0000.00717.05
8.0.00.0170.00316.73
7.4.330.0000.00515.04
7.4.320.0000.00716.73
7.4.300.0030.00316.73
7.4.290.0030.00316.85
7.4.280.0030.00316.79
7.4.270.0070.00016.85
7.4.260.0000.00513.60
7.4.250.0080.00016.65
7.4.240.0000.00816.83
7.4.230.0000.00716.91
7.4.220.0090.01016.79
7.4.210.0040.01116.75
7.4.200.0070.00016.60
7.4.190.0000.00716.97
7.4.160.0060.00916.57
7.4.150.0070.01017.40
7.4.140.0050.01217.86
7.4.130.0070.01016.77
7.4.120.0110.00816.67
7.4.110.0030.01316.72
7.4.100.0130.00616.60
7.4.90.0130.01016.60
7.4.80.0100.01019.39
7.4.70.0120.00916.55
7.4.60.0030.01716.71
7.4.50.0000.00916.80
7.4.40.0040.01522.52
7.4.30.0090.01516.80
7.4.00.0060.01115.00
7.3.330.0050.00013.26
7.3.320.0000.00513.23
7.3.310.0000.00716.55
7.3.300.0030.00316.45
7.3.290.0060.00916.44
7.3.280.0100.00816.43
7.3.270.0100.00617.40
7.3.260.0120.00718.24
7.3.250.0110.00816.62
7.3.240.0060.01216.76
7.3.230.0060.01016.73
7.3.210.0110.00616.50
7.3.200.0090.01219.39
7.3.190.0160.00716.71
7.3.180.0080.00816.75
7.3.170.0120.00316.46
7.3.160.0060.01016.59
7.3.120.0050.00915.04
7.3.110.0100.00715.20
7.3.100.0000.01714.99
7.3.90.0060.00614.90
7.3.80.0070.00715.29
7.3.70.0100.00715.15
7.3.60.0000.01514.77
7.3.50.0070.00714.87
7.3.40.0000.01414.87
7.3.30.0060.01014.95
7.3.20.0070.00716.86
7.3.10.0060.00616.73
7.3.00.0060.01216.77
7.2.330.0120.01116.72
7.2.320.0140.01116.54
7.2.310.0160.00616.72
7.2.300.0100.01316.89
7.2.290.0100.00716.65
7.2.250.0110.00015.24
7.2.240.0100.00715.19
7.2.230.0000.01314.91
7.2.220.0100.00615.25
7.2.210.0040.01515.23
7.2.200.0060.00615.32
7.2.190.0060.00915.30
7.2.180.0000.01414.87
7.2.170.0000.01215.17
7.2.160.0100.00315.02
7.2.150.0030.00917.16
7.2.140.0030.01017.05
7.2.130.0140.00317.17
7.2.120.0060.00917.17
7.2.110.0000.01216.80
7.2.100.0100.00316.80
7.2.90.0000.01317.09
7.2.80.0070.00716.81
7.2.70.0030.01216.97
7.2.60.0120.00316.86
7.2.50.0000.01416.73
7.2.40.0030.00916.91
7.2.30.0070.01017.20
7.2.20.0070.01017.23
7.2.10.0150.00317.11
7.2.00.0040.00817.22
7.1.330.0030.01116.07
7.1.320.0080.01116.10
7.1.310.0060.00915.68
7.1.300.0060.00916.02
7.1.290.0000.01116.00
7.1.280.0030.01016.03
7.1.270.0030.00915.84
7.1.260.0140.00016.09
7.1.250.0140.00315.97
7.1.240.0070.00715.98
7.1.230.0030.00615.79
7.1.220.0030.00715.92
7.1.210.0000.01116.09
7.1.200.0110.00716.07
7.1.190.0090.00315.88
7.1.180.0030.01016.14
7.1.170.0060.00916.13
7.1.160.0090.00615.97
7.1.150.0060.00915.84
7.1.140.0060.00615.74
7.1.130.0040.00815.75
7.1.120.0040.00416.04
7.1.110.0040.01115.70
7.1.100.0070.00816.98
7.1.90.0060.00315.98
7.1.80.0100.00316.02
7.1.70.0100.00916.67
7.1.60.0130.00617.77
7.1.50.0070.01216.54
7.1.40.0030.00616.16
7.1.30.0040.01115.85
7.1.20.0000.01416.18
7.1.10.0000.00916.18
7.1.00.0030.02719.20
7.0.330.0060.00315.68
7.0.320.0030.00915.56
7.0.310.0000.01215.59
7.0.300.0060.00615.60
7.0.290.0040.00815.75
7.0.280.0040.01115.79
7.0.270.0070.00315.83
7.0.260.0030.01015.39
7.0.250.0040.00415.58
7.0.240.0030.01015.70
7.0.230.0090.00615.64
7.0.220.0110.00315.38
7.0.210.0090.00615.62
7.0.200.0030.00816.28
7.0.190.0030.01015.67
7.0.180.0100.00315.28
7.0.170.0040.00815.77
7.0.160.0030.00915.36
7.0.150.0040.01115.57
7.0.140.0080.04018.70
7.0.130.0060.00315.59
7.0.120.0000.01015.73
7.0.110.0000.01315.47
7.0.100.0140.00015.60
7.0.90.0040.00815.49
7.0.80.0110.00015.71
7.0.70.0040.00415.70
7.0.60.0100.03017.73
7.0.50.0080.03316.83
7.0.40.0070.02517.03
7.0.30.0160.02616.77
7.0.20.0110.02216.97
7.0.10.0070.02316.97
7.0.00.0040.02616.95
5.6.400.0070.00314.66
5.6.390.0030.01014.20
5.6.380.0030.01314.65
5.6.370.0130.00314.56
5.6.360.0030.00914.64
5.6.350.0040.00914.57
5.6.340.0030.01214.41
5.6.330.0140.00014.72
5.6.320.0030.01014.71
5.6.310.0090.00414.76
5.6.300.0140.00014.69
5.6.290.0060.00914.64
5.6.280.0060.03717.69
5.6.270.0040.00714.39
5.6.260.0030.01214.59
5.6.250.0040.01114.45
5.6.240.0060.00614.62
5.6.230.0090.00614.64
5.6.220.0060.00614.55
5.6.210.0030.04617.58
5.6.200.0030.02516.27
5.6.190.0070.04717.46
5.6.180.0150.02417.44
5.6.170.0130.04217.48
5.6.160.0100.03817.31
5.6.150.0050.04616.29
5.6.140.0020.04516.24
5.6.130.0030.04816.33
5.6.120.0080.04317.71
5.6.110.0110.02817.73
5.6.100.0080.04317.65
5.6.90.0110.03617.65
5.6.80.0050.02517.34
5.6.70.2220.02217.36
5.6.60.0060.00314.66
5.6.50.0060.00914.51
5.6.40.0120.00314.34
5.6.30.0090.00314.18
5.6.20.0090.00614.45
5.6.10.0040.00814.34
5.6.00.0060.01014.68
5.5.380.0000.00814.33
5.5.370.0110.00014.32
5.5.360.0030.01214.18
5.5.350.0170.04117.45
5.5.340.0110.04116.27
5.5.330.0080.04017.17
5.5.320.0160.04017.19
5.5.310.0180.04117.44
5.5.300.0050.04216.29
5.5.290.0040.02416.24
5.5.280.0090.03317.56
5.5.270.0050.04817.55
5.5.260.0090.02817.59
5.5.250.0050.03317.45
5.5.240.0210.03317.25
5.5.230.0040.00814.58
5.5.220.0110.00714.42
5.5.210.0000.00814.29
5.5.200.0060.00914.04
5.5.190.0000.01414.30
5.5.180.0070.00714.27
5.5.170.0000.01114.51
5.5.160.0060.00914.45
5.5.150.0030.00914.41
5.5.140.0040.01214.51
5.5.130.0070.00714.37
5.5.120.0040.01214.42
5.5.110.0070.01114.28
5.5.100.0100.00714.45
5.5.90.0070.00714.50
5.5.80.0060.00614.51
5.5.70.0000.01014.27
5.5.60.0030.01014.24
5.5.50.0080.00314.21
5.5.40.0030.01114.22
5.5.30.0070.00714.29
5.5.20.0000.00914.38
5.5.10.0060.00614.28
5.5.00.0130.00314.25
5.4.450.0110.04016.05
5.4.440.0130.02816.04
5.4.430.0070.04815.96
5.4.420.0130.02016.08
5.4.410.0150.02215.98
5.4.400.0150.04215.79
5.4.390.0210.03315.73
5.4.380.0130.02815.82
5.4.370.0130.02815.85
5.4.360.0100.02815.93
5.4.350.0100.04215.81
5.4.340.0160.02715.92
5.4.330.0030.00712.62
5.4.320.0140.02615.74
5.4.310.0130.03515.80
5.4.300.0150.02515.90
5.4.290.0120.03215.92
5.4.280.0170.03815.74
5.4.270.0150.03915.88
5.4.260.0120.04515.92
5.4.250.0160.03915.80
5.4.240.0130.04115.88
5.4.230.0170.03315.85
5.4.220.0160.04115.88
5.4.210.0130.03615.88
5.4.200.0100.02515.89
5.4.190.0180.03715.87
5.4.180.0190.02615.92
5.4.170.0170.04215.84
5.4.160.0130.04115.84
5.4.150.0180.03515.91
5.4.140.0170.03414.53
5.4.130.0140.03614.48
5.4.120.0130.02214.56
5.4.110.0170.02314.54
5.4.100.0170.03514.49
5.4.90.0120.04014.61
5.4.80.0130.03714.50
5.4.70.0140.03714.57
5.4.60.0120.03314.43
5.4.50.0120.04014.52
5.4.40.0120.02614.50
5.4.30.0120.04014.57
5.4.20.0130.02814.55
5.4.10.0160.01814.57
5.4.00.0100.02114.26
5.3.290.0120.04013.65
5.3.280.0150.03513.57
5.3.270.0130.04013.65
5.3.260.0120.04013.57
5.3.250.0150.02413.66
5.3.240.0160.03813.55
5.3.230.0140.03513.69
5.3.220.0110.02313.71
5.3.210.0140.03413.61
5.3.200.0110.04213.59
5.3.190.0170.03713.55
5.3.180.0180.03213.60
5.3.170.0170.02313.54
5.3.160.0130.02813.57
5.3.150.0150.03713.52
5.3.140.0130.04013.69
5.3.130.0110.03613.53
5.3.120.0130.03713.57
5.3.110.0120.02013.54
5.3.100.0160.03813.28
5.3.90.0110.03813.32
5.3.80.0120.02613.33
5.3.70.0120.04013.37
5.3.60.0170.03313.26
5.3.50.0180.02313.29
5.3.40.0080.03613.23
5.3.30.0160.02813.29
5.3.20.0100.03113.12
5.3.10.0130.02813.21
5.3.00.0130.02813.11
5.2.170.0230.05312.09
5.2.160.0100.04012.09
5.2.150.0200.05712.09
5.2.140.0130.05712.09
5.2.130.0170.06012.09
5.2.120.0200.05712.09
5.2.110.0170.04312.09
5.2.100.0170.06312.09
5.2.90.0230.03312.09
5.2.80.0200.03712.09
5.2.70.0200.02712.09
5.2.60.0200.04312.09
5.2.50.0270.03312.09
5.2.40.0130.05312.09
5.2.30.0200.05012.09
5.2.20.0200.04712.09
5.2.10.0270.04012.09
5.2.00.0200.05312.09
5.1.60.0170.04012.09
5.1.50.0170.05312.09
5.1.40.0200.03312.09
5.1.30.0130.03312.09
5.1.20.0170.03312.09
5.1.10.0200.05312.09
5.1.00.0200.03012.09
5.0.50.0070.04312.09
5.0.40.0070.04012.09
5.0.30.0070.06012.09
5.0.20.0230.02012.09
5.0.10.0070.04012.09
5.0.00.0070.05312.09
4.4.90.0100.02012.09
4.4.80.0070.03012.09
4.4.70.0170.01712.09
4.4.60.0100.01712.09
4.4.50.0100.01712.09
4.4.40.0070.05312.09
4.4.30.0130.02312.09
4.4.20.0100.01712.09
4.4.10.0070.02012.09
4.4.00.0070.03712.09
4.3.110.0070.03712.09
4.3.100.0100.02712.09
4.3.90.0100.02712.09
4.3.80.0030.04712.09
4.3.70.0030.02312.09
4.3.60.0070.03712.09
4.3.50.0100.03012.09
4.3.40.0070.05012.09
4.3.30.0030.03012.09
4.3.20.0070.02312.09
4.3.10.0070.01712.09
4.3.00.0000.02012.09

preferences:
35.18 ms | 401 KiB | 5 Q