3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mlbCities = array( 'Carolina', 'Atlanta', 'New Orleans', 'Philadelphia', 'St. Louis', 'Washington', 'Houston', 'Tennessee', 'New England', 'NY Jets', 'Cincinnati', 'Green Bay', 'Arizona', 'Jacksonville', 'Oakland', 'Kansas City', 'Minnesota', 'Detroit', 'Tampa Bay', 'Buffalo', 'Seattle', 'San Francisco', 'Pittsburgh', 'Chicago', 'Baltimore', 'San Diego', 'Cleveland', 'Denver', 'NY Giants', 'Dallas', 'Indianapolis', 'Miami' ); $string = 'San Francisco Giants'; foreach($mlbCities as $city) { $fl_array = preg_match("/$city/", $string); var_dump($fl_array); } ?>

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.00316.88
8.3.50.0160.00722.11
8.3.40.0110.00418.96
8.3.30.0040.01118.83
8.3.20.0040.00420.30
8.3.10.0040.00423.53
8.3.00.0000.01119.17
8.2.180.0120.00616.38
8.2.170.0160.00322.96
8.2.160.0040.01120.35
8.2.150.0080.00024.18
8.2.140.0130.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00019.43
8.2.110.0090.00020.53
8.2.100.0100.00317.97
8.2.90.0040.00418.16
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0000.01117.79
8.2.50.0000.00918.07
8.2.40.0030.00620.07
8.2.30.0000.00718.22
8.2.20.0030.00517.92
8.2.10.0040.00418.13
8.2.00.0040.00419.62
8.1.280.0180.00325.92
8.1.270.0210.00024.09
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00022.10
8.1.230.0050.00520.97
8.1.220.0040.00417.89
8.1.210.0040.00419.02
8.1.200.0060.00317.48
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0040.00418.69
8.1.160.0040.00421.99
8.1.150.0030.00518.80
8.1.140.0040.00417.51
8.1.130.0030.00317.82
8.1.120.0060.00317.64
8.1.110.0030.00617.60
8.1.100.0030.00617.68
8.1.90.0040.00417.62
8.1.80.0030.00517.56
8.1.70.0040.00417.61
8.1.60.0050.00517.75
8.1.50.0000.00817.77
8.1.40.0000.00817.75
8.1.30.0060.00317.77
8.1.20.0050.00317.67
8.1.10.0000.00817.73
8.1.00.0040.00417.47
8.0.300.0090.00020.16
8.0.290.0040.00416.75
8.0.280.0040.00418.40
8.0.270.0070.00017.23
8.0.260.0030.00317.30
8.0.250.0000.00817.15
8.0.240.0040.00417.14
8.0.230.0040.00417.00
8.0.220.0030.00516.95
8.0.210.0040.00417.00
8.0.200.0030.00317.15
8.0.190.0000.00817.07
8.0.180.0000.00817.16
8.0.170.0000.00817.08
8.0.160.0040.00417.04
8.0.150.0090.00416.98
8.0.140.0030.00616.91
8.0.130.0060.00313.37
8.0.120.0050.00316.93
8.0.110.0040.00417.13
8.0.100.0040.00417.02
8.0.90.0050.00317.14
8.0.80.0030.01317.08
8.0.70.0030.00617.18
8.0.60.0040.00416.96
8.0.50.0000.00717.11
8.0.30.0080.01217.34
8.0.20.0090.01117.40
8.0.10.0000.00817.10
8.0.00.0060.01216.79
7.4.330.0030.00315.06
7.4.320.0000.00616.86
7.4.300.0030.00316.65
7.4.290.0040.00416.73
7.4.280.0030.00616.73
7.4.270.0030.00516.73
7.4.260.0040.00416.68
7.4.250.0030.00516.71
7.4.240.0050.00316.85
7.4.230.0040.00416.55
7.4.220.0040.01516.84
7.4.210.0070.00716.62
7.4.200.0070.00016.87
7.4.160.0080.01016.72
7.4.150.0120.00817.40
7.4.140.0100.00817.86
7.4.130.0060.01116.76
7.4.120.0150.00416.70
7.4.110.0090.00916.81
7.4.100.0160.00916.84
7.4.90.0070.01016.72
7.4.80.0060.02119.39
7.4.70.0100.01316.58
7.4.60.0140.00416.57
7.4.50.0060.00016.70
7.4.40.0070.01016.68
7.4.30.0100.00716.73
7.4.00.0030.01415.32
7.3.330.0030.00313.26
7.3.320.0030.00313.34
7.3.310.0040.00416.34
7.3.300.0000.00716.53
7.3.290.0070.00816.52
7.3.280.0080.01116.51
7.3.270.0080.01117.40
7.3.260.0070.01316.91
7.3.250.0120.00816.80
7.3.240.0060.01216.89
7.3.230.0090.00916.65
7.3.210.0050.01316.90
7.3.200.0090.00919.39
7.3.190.0100.01016.79
7.3.180.0090.00616.77
7.3.170.0120.00616.76
7.3.160.0100.00716.43
7.3.120.0030.00615.06
7.2.330.0070.01016.75
7.2.320.0060.01216.75
7.2.310.0170.00916.96
7.2.300.0210.00316.80
7.2.290.0110.01116.64
7.2.60.0040.00716.97
7.2.00.0000.01119.55
7.1.200.0090.00316.03
7.1.100.0030.00918.28
7.1.70.0180.00017.51
7.1.60.0160.01019.70
7.1.50.0120.01217.35
7.1.00.0030.09322.42
7.0.200.0030.00516.98
7.0.140.0200.06022.11
7.0.60.0100.07019.90
7.0.50.0130.07317.94
7.0.40.0000.09319.96
7.0.30.0170.04320.29
7.0.20.0330.07020.37
7.0.10.0070.08720.14
7.0.00.0000.04720.09
5.6.280.0000.07721.13
5.6.210.0170.06320.56
5.6.200.0030.04318.23
5.6.190.0100.05020.33
5.6.180.4030.03720.46
5.6.170.0300.06720.39
5.6.160.0030.04720.35
5.6.150.0100.04718.18
5.6.140.0130.06318.22
5.6.130.0000.04318.14
5.6.120.0070.08721.10
5.6.110.0000.04320.98
5.6.100.0070.08321.13
5.6.90.0100.07721.07
5.6.80.0100.07320.36
5.6.70.4470.04020.42
5.5.350.0030.08320.43
5.5.340.0000.04317.92
5.5.330.0100.03320.29
5.5.320.0400.07020.25
5.5.310.0200.05720.32
5.5.300.0130.07717.96
5.5.290.0070.08017.93
5.5.280.0070.04320.77
5.5.270.0130.08320.61
5.5.260.0030.08320.96
5.5.250.0070.07720.68
5.5.240.0330.07320.18
5.4.450.0270.04343.73
5.4.440.0230.04337.15
5.4.430.0200.04333.63
5.4.420.0230.05033.62
5.4.410.0270.04333.62
5.4.400.0270.04333.60
5.4.390.0370.05031.27
5.4.380.0230.05018.58
5.4.370.0270.04318.54
5.4.360.0200.05718.50
5.4.350.0100.06318.73
5.4.340.0170.05318.72
5.4.320.0050.04012.47
5.4.310.0060.04212.47
5.4.300.0070.03612.47
5.4.290.0050.04212.47
5.4.280.0050.03712.36
5.4.270.0040.03912.36
5.4.260.0050.03912.36
5.4.250.0020.04212.36
5.4.240.0040.05112.36
5.4.230.0030.04212.36
5.4.220.0090.03812.36
5.4.210.0060.03612.35
5.4.200.0060.03812.36
5.4.190.0080.03912.35
5.4.180.0050.03712.35
5.4.170.0040.04312.36
5.4.160.0050.03712.36
5.4.150.0090.03612.36
5.4.140.0070.03612.04
5.4.130.0110.04412.02
5.4.120.0040.03711.98
5.4.110.0070.04011.98
5.4.100.0050.03911.98
5.4.90.0110.04111.98
5.4.80.0050.03911.98
5.4.70.0060.03811.98
5.4.60.0060.03711.98
5.4.50.0070.04011.97
5.4.40.0060.03611.96
5.4.30.0090.04711.96
5.4.20.0070.05011.96
5.4.10.0060.03611.96
5.4.00.0070.03611.45
5.3.290.0060.04312.80
5.3.280.0030.04712.71
5.3.270.0080.03912.72
5.3.260.0020.04312.72
5.3.250.0020.04112.72
5.3.240.0070.03612.72
5.3.230.0080.03612.71
5.3.220.0050.03812.68
5.3.210.0090.03712.68
5.3.200.0090.04512.68
5.3.190.0080.03912.68
5.3.180.0100.03912.67
5.3.170.0050.03912.67
5.3.160.0070.04012.68
5.3.150.0050.04012.68
5.3.140.0110.03912.66
5.3.130.0100.04112.66
5.3.120.0100.03712.66
5.3.110.0110.04412.65
5.3.100.0060.03712.12
5.3.90.0040.04012.08
5.3.80.0110.03112.08
5.3.70.0090.04012.08
5.3.60.0070.04512.06
5.3.50.0050.03812.01
5.3.40.0060.03712.01
5.3.30.0060.03611.96
5.3.20.0090.03211.75
5.3.10.0100.03511.71
5.3.00.0070.03911.70
5.2.170.0050.0339.21
5.2.160.0080.0289.20
5.2.150.0060.0369.21
5.2.140.0080.0289.20
5.2.130.0060.0309.16
5.2.120.0040.0349.16
5.2.110.0040.0309.17
5.2.100.0030.0309.16
5.2.90.0050.0359.17
5.2.80.0050.0329.16
5.2.70.0030.0329.16
5.2.60.0040.0379.11
5.2.50.0050.0309.08
5.2.40.0030.0359.06
5.2.30.0080.0349.04
5.2.20.0080.0269.03
5.2.10.0060.0368.93
5.2.00.0020.0338.80
5.1.60.0040.0248.08
5.1.50.0080.0358.07
5.1.40.0060.0248.06
5.1.30.0040.0278.41
5.1.20.0060.0268.43
5.1.10.0050.0268.15
5.1.00.0020.0298.15
5.0.50.0040.0216.63
5.0.40.0070.0186.48
5.0.30.0050.0316.30
5.0.20.0030.0206.27
5.0.10.0070.0256.25
5.0.00.0030.0366.25
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0060.0194.76
4.4.60.0050.0194.76
4.4.50.0010.0184.77
4.4.40.0050.0294.71
4.4.30.0040.0174.76
4.4.20.0040.0184.85
4.4.10.0040.0184.84
4.4.00.0030.0284.76
4.3.110.0010.0174.67
4.3.100.0040.0204.66
4.3.90.0090.0094.63
4.3.80.0070.0274.58
4.3.70.0010.0214.63
4.3.60.0020.0174.63
4.3.50.0040.0214.63
4.3.40.0050.0294.54
4.3.30.0020.0183.30
4.3.20.0020.0173.28
4.3.10.0030.0213.22
4.3.00.0000.02031.27

preferences:
48.43 ms | 401 KiB | 5 Q