3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'Ingress Intel Map https://www.ingress.com/intel?ll=55.756471,37.122987&z=17&pll=55.756471,37.122987'; $pat_portal = '/intel\?([a-z0-9\=\.\,\&]+)pll=(\d+.\d+),(\d+.\d+)$/'; $pat_location = '/intel\?ll=(\d+.\d+),(\d+.\d+)&z=(\d+)/'; if(preg_match($pat_portal, $subject, $matches)){ echo "портал: lat - {$matches[2]} , lng - {$matches[3]}"; }elseif(preg_match($pat_location, $subject, $matches)){ echo "локация: lat - {$matches[0]} , lng - {$matches[1]} , zoom - {$matches[2]}"; } ?>

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.31
8.3.50.0040.01118.32
8.3.40.0130.00718.71
8.3.30.0110.00419.12
8.3.20.0000.00720.20
8.3.10.0040.00423.71
8.3.00.0000.00722.58
8.2.180.0090.00618.54
8.2.170.0110.01122.96
8.2.160.0030.01019.32
8.2.150.0040.00424.18
8.2.140.0060.00924.66
8.2.130.0040.00426.16
8.2.120.0050.00220.90
8.2.110.0070.00319.30
8.2.100.0080.00417.84
8.2.90.0050.00318.34
8.2.80.0000.00818.86
8.2.70.0080.00017.75
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0050.00317.91
8.2.30.0000.00818.23
8.2.20.0040.00417.86
8.2.10.0080.00018.10
8.2.00.0060.00318.19
8.1.280.0070.00725.92
8.1.270.0050.00223.99
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0080.00022.53
8.1.230.0090.00319.10
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0090.00017.13
8.1.180.0000.00818.10
8.1.170.0080.00018.63
8.1.160.0050.00218.78
8.1.150.0080.00018.88
8.1.140.0060.00317.58
8.1.130.0030.00317.68
8.1.120.0040.00417.53
8.1.110.0000.00817.54
8.1.100.0040.00417.50
8.1.90.0000.00717.57
8.1.80.0030.00617.55
8.1.70.0000.00717.63
8.1.60.0060.00317.57
8.1.50.0080.00017.55
8.1.40.0000.00817.49
8.1.30.0040.00417.60
8.1.20.0080.00017.64
8.1.10.0000.00817.71
8.1.00.0050.00317.69
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.47
8.0.270.0070.00017.35
8.0.260.0030.00317.40
8.0.250.0040.00417.04
8.0.240.0030.00316.96
8.0.230.0030.00517.02
8.0.220.0000.00717.04
8.0.210.0000.00717.07
8.0.200.0030.00317.05
8.0.190.0000.00717.07
8.0.180.0040.00417.05
8.0.170.0050.00316.93
8.0.160.0000.00716.90
8.0.150.0020.00516.88
8.0.140.0070.00016.90
8.0.130.0090.00013.50
8.0.120.0040.00417.01
8.0.110.0040.00417.02
8.0.100.0050.00217.05
8.0.90.0030.00517.16
8.0.80.0060.01017.02
8.0.70.0050.00217.11
8.0.60.0030.00316.93
8.0.50.0050.00317.01
8.0.30.0070.01017.14
8.0.20.0090.01017.48
8.0.10.0050.00216.98
8.0.00.0080.01016.98
7.4.330.0000.00515.04
7.4.320.0060.00016.53
7.4.300.0030.00316.71
7.4.290.0000.00716.71
7.4.280.0000.00816.66
7.4.270.0000.00816.73
7.4.260.0050.00316.72
7.4.250.0030.00516.71
7.4.240.0000.00716.70
7.4.230.0070.00016.65
7.4.220.0140.01216.70
7.4.210.0090.01216.61
7.4.200.0000.00816.86
7.4.160.0100.00716.60
7.4.150.0070.01417.40
7.4.140.0100.01017.86
7.4.130.0090.01116.82
7.4.120.0130.00616.74
7.4.110.0110.00616.68
7.4.100.0150.00516.58
7.4.90.0070.01016.80
7.4.80.0120.00919.39
7.4.70.0000.02116.71
7.4.60.0060.00916.77
7.4.50.0030.00516.55
7.4.40.0030.01316.75
7.4.30.0100.00716.95
7.4.00.0060.01015.27
7.3.330.0000.00513.20
7.3.320.0060.00013.28
7.3.310.0040.00216.30
7.3.300.0030.00316.36
7.3.290.0090.00816.36
7.3.280.0120.00716.31
7.3.270.0070.01117.40
7.3.260.0060.01316.64
7.3.250.0090.00916.46
7.3.240.0150.00616.47
7.3.230.0160.00016.41
7.3.210.0090.00916.63
7.3.200.0090.00919.39
7.3.190.0060.01016.34
7.3.180.0120.00416.74
7.3.170.0030.01316.55
7.3.160.0090.00616.67
7.2.330.0060.01216.71
7.2.320.0120.01216.59
7.2.310.0100.00516.64
7.2.300.0140.00516.88
7.2.290.0070.01116.62
7.2.00.0060.00819.33
7.1.100.0060.00618.34
7.1.70.0040.00417.38
7.1.60.0130.01019.59
7.1.50.0070.01017.23
7.1.00.0030.07022.48
7.0.200.0000.00716.85
7.0.60.0270.07719.86
7.0.50.0100.07717.84
7.0.40.0070.04720.26
7.0.30.0170.05020.32
7.0.20.0270.04020.11
7.0.10.0170.08320.16
7.0.00.0030.08020.02
5.6.280.0130.06321.09
5.6.210.0000.08720.72
5.6.200.0100.07718.22
5.6.190.0000.05020.41
5.6.180.3330.04020.33
5.6.170.0200.04320.33
5.6.160.0070.04018.11
5.6.150.0170.07018.11
5.6.140.0030.04018.07
5.6.130.0100.05018.20
5.6.120.0070.03721.03
5.6.110.0000.09020.98
5.6.100.0130.04721.04
5.6.90.0030.09021.01
5.6.80.0130.07020.40
5.5.350.0170.07320.41
5.5.340.0130.07318.02
5.5.330.0100.04020.23
5.5.320.0300.05320.17
5.5.310.0300.07020.20
5.5.300.0100.04017.97
5.5.290.0030.05717.97
5.5.280.0030.06320.73
5.5.270.0070.05020.95
5.5.260.0100.08720.75
5.5.250.0130.06020.46
5.5.240.2970.03720.25
5.4.450.0600.05719.28
5.4.440.0800.06019.23
5.4.430.0800.04719.32
5.4.420.0670.06319.63
5.4.410.0730.05319.51
5.4.400.0730.05319.32
5.4.390.0530.05318.84
5.4.380.0630.04719.22
5.4.370.0600.05719.34
5.4.360.0600.05018.92
5.4.350.0600.05018.84
5.4.340.0530.06019.19
5.4.320.0600.04719.21
5.4.310.0600.04319.11
5.4.300.0630.04318.82
5.4.290.0770.05019.22
5.4.280.0600.05019.16
5.4.270.0600.05019.19
5.4.260.0500.05319.05
5.4.250.0530.05318.92
5.4.240.0630.04319.04
5.4.230.0500.05719.18
5.4.220.0530.05719.21
5.4.210.0630.06019.05
5.4.200.0570.05316.51
5.4.190.0630.04718.99
5.4.180.0670.04319.14
5.4.170.0770.06719.02
5.4.160.0770.05318.94
5.4.150.0730.05018.86
5.4.140.0570.04716.42
5.4.130.0470.06016.42
5.4.120.0530.05316.33
5.4.110.0530.05016.21
5.4.100.0530.05016.41
5.4.90.0570.05016.52
5.4.80.0630.06016.18
5.4.70.0700.04016.51
5.4.60.0570.04716.51
5.4.50.0500.05316.38
5.4.40.0570.05016.48
5.4.30.0570.05016.30
5.4.20.0600.04716.14
5.4.10.0670.03716.38
5.4.00.0770.05315.96
5.3.290.0770.05314.64
5.3.280.0730.05314.44
5.3.270.0800.06014.64
5.3.260.0800.04714.70
5.3.250.0800.04314.59
5.3.240.0770.04714.56
5.3.230.0730.05014.53
5.3.220.0730.05314.52
5.3.210.0700.05314.61
5.3.200.0630.05714.48
5.3.190.0570.05014.54
5.3.180.0700.03714.52
5.3.170.0600.04714.42
5.3.160.0630.04314.64
5.3.150.0570.05014.55
5.3.140.0530.05314.63
5.3.130.0570.05314.55
5.3.120.0500.05714.50
5.3.110.0100.05714.52
5.3.100.0070.05014.07
5.3.90.0030.05313.91
5.3.80.0230.05313.96
5.3.70.0470.05713.91
5.3.60.0770.04313.91
5.3.50.0730.05014.00
5.3.40.0730.05013.94
5.3.30.0670.05713.80
5.3.20.0770.04313.54
5.3.10.0700.04713.56
5.3.00.0670.05713.64
5.2.170.0630.03711.30
5.2.160.0600.04011.13
5.2.150.0570.04311.08
5.2.140.0630.04011.10
5.2.130.0630.03711.01
5.2.120.0600.03711.00
5.2.110.0630.03311.05
5.2.100.0630.03711.10
5.2.90.0630.04011.09
5.2.80.0600.04311.02
5.2.70.0570.04311.07
5.2.60.0630.04011.03
5.2.50.0600.04011.16
5.2.40.0430.04711.00
5.2.30.0570.03310.94
5.2.20.0500.03710.85
5.2.10.0430.04310.76
5.2.00.0470.04010.76
5.1.60.0500.0309.90
5.1.50.0400.03010.04
5.1.40.0470.0339.98
5.1.30.0370.03310.32
5.1.20.0470.03310.29
5.1.10.0500.03310.08
5.1.00.0470.0379.91
5.0.50.0230.0308.43
5.0.40.0200.0308.29
5.0.30.0370.0438.14
5.0.20.0230.0278.12
5.0.10.0230.0308.14
5.0.00.0270.0438.14
4.4.90.0170.0305.93
4.4.80.0370.0235.89
4.4.70.0230.0235.91
4.4.60.0230.0205.80
4.4.50.0230.0175.82
4.4.40.0200.0335.74
4.4.30.0170.0235.90
4.4.20.0130.0275.84
4.4.10.0200.0205.91
4.4.00.0230.0305.78
4.3.110.0230.0235.71
4.3.100.0230.0205.82
4.3.90.0270.0175.84
4.3.80.0200.0375.64
4.3.70.0230.0205.78
4.3.60.0300.0135.78
4.3.50.0230.0205.68
4.3.40.0270.0305.62
4.3.30.0130.0204.43
4.3.20.0070.0234.52
4.3.10.0130.0204.38
4.3.00.0170.0177.30

preferences:
92.28 ms | 400 KiB | 5 Q