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) { var_dump($city); var_dump($string); $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.0070.01416.63
8.3.50.0100.00722.11
8.3.40.0080.00818.79
8.3.30.0120.00319.05
8.3.20.0080.00020.25
8.3.10.0090.00023.65
8.3.00.0080.00319.20
8.2.180.0170.00316.88
8.2.170.0070.01122.96
8.2.160.0070.00720.26
8.2.150.0060.00324.18
8.2.140.0130.00724.66
8.2.130.0150.00026.16
8.2.120.0050.00319.48
8.2.110.0040.00722.38
8.2.100.0130.00318.03
8.2.90.0030.00617.75
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0000.00817.93
8.2.50.0040.00718.10
8.2.40.0080.00020.59
8.2.30.0040.00418.31
8.2.20.0000.00817.91
8.2.10.0080.00018.25
8.2.00.0000.00919.70
8.1.280.0070.00725.92
8.1.270.0130.00724.09
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.01022.67
8.1.230.0110.00019.29
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00818.75
8.1.160.0000.00822.06
8.1.150.0030.00518.85
8.1.140.0000.00817.55
8.1.130.0070.00017.83
8.1.120.0000.00717.72
8.1.110.0030.00517.70
8.1.100.0040.00417.64
8.1.90.0000.00817.57
8.1.80.0030.00517.66
8.1.70.0000.00817.55
8.1.60.0040.00417.70
8.1.50.0060.00317.68
8.1.40.0090.00017.64
8.1.30.0100.00017.90
8.1.20.0030.00617.75
8.1.10.0000.00817.61
8.1.00.0000.00817.63
8.0.300.0000.00719.91
8.0.290.0060.00316.88
8.0.280.0070.00018.43
8.0.270.0040.00417.20
8.0.260.0000.00717.32
8.0.250.0070.00017.08
8.0.240.0060.00317.14
8.0.230.0000.00917.18
8.0.220.0000.00717.01
8.0.210.0050.00216.95
8.0.200.0030.00317.07
8.0.190.0030.00617.20
8.0.180.0020.00517.12
8.0.170.0080.00017.11
8.0.160.0000.00817.16
8.0.150.0000.00817.09
8.0.140.0000.01017.02
8.0.130.0060.00013.57
8.0.120.0060.00317.05
8.0.110.0000.00917.14
8.0.100.0040.00417.01
8.0.90.0040.00417.12
8.0.80.0070.01417.05
8.0.70.0000.00816.96
8.0.60.0030.00517.03
8.0.50.0000.00817.10
8.0.30.0120.00917.21
8.0.20.0140.00717.40
8.0.10.0040.00417.15
8.0.00.0100.01017.02
7.4.330.0000.00615.09
7.4.320.0000.00716.90
7.4.300.0070.00016.80
7.4.290.0000.00716.90
7.4.280.0070.00016.70
7.4.270.0000.00816.84
7.4.260.0030.00716.88
7.4.250.0050.00216.66
7.4.240.0040.00416.77
7.4.230.0070.00016.87
7.4.220.0130.00716.81
7.4.210.0070.01416.72
7.4.200.0000.00716.86
7.4.160.0060.01216.75
7.4.150.0150.00317.40
7.4.140.0090.01317.86
7.4.130.0080.01216.52
7.4.120.0110.00816.71
7.4.110.0100.01316.79
7.4.100.0140.00716.57
7.4.90.0030.01616.74
7.4.80.0030.02019.39
7.4.70.0170.00716.75
7.4.60.0060.01316.59
7.4.50.0070.00316.68
7.4.40.0100.01016.45
7.4.30.0110.00716.57
7.4.00.0110.00715.29
7.3.330.0060.00013.25
7.3.320.0030.00313.40
7.3.310.0040.00416.37
7.3.300.0040.00416.53
7.3.290.0060.00916.47
7.3.280.0080.01116.54
7.3.270.0030.01617.40
7.3.260.0100.01116.49
7.3.250.0120.01216.45
7.3.240.0060.01316.83
7.3.230.0230.00016.75
7.3.210.0100.01016.47
7.3.200.0040.01419.39
7.3.190.0160.00316.40
7.3.180.0110.00716.60
7.3.170.0030.01916.49
7.3.160.0110.00716.34
7.3.120.0100.00715.33
7.3.10.0070.00716.80
7.3.00.0060.00916.84
7.2.330.0070.01316.77
7.2.320.0110.01116.95
7.2.310.0150.00916.86
7.2.300.0140.00516.80
7.2.290.0070.01016.81
7.2.130.0070.01017.25
7.2.120.0070.00816.97
7.2.110.0060.00817.20
7.2.100.0080.00717.11
7.2.90.0100.00717.21
7.2.80.0060.00816.97
7.2.70.0080.00517.28
7.2.60.0050.00817.08
7.2.50.0100.00317.30
7.2.40.0130.00617.18
7.2.30.0060.00817.23
7.2.20.0060.01116.98
7.2.10.0090.00516.98
7.2.00.0050.00918.05
7.1.250.0090.00716.02
7.1.240.0000.01116.02
7.1.230.0030.00916.09
7.1.220.0070.00715.96
7.1.210.0150.00616.24
7.1.200.0050.00815.81
7.1.190.0040.00815.72
7.1.180.0060.00916.13
7.1.170.0150.00415.84
7.1.160.0090.00315.94
7.1.150.0080.00616.15
7.1.140.0090.00615.76
7.1.130.0040.01116.14
7.1.120.0030.01315.79
7.1.110.0070.01015.79
7.1.100.0090.00917.28
7.1.90.0060.00616.13
7.1.80.0110.00616.04
7.1.70.0060.00616.73
7.1.60.0020.02017.86
7.1.50.0120.00916.59
7.1.40.0100.00316.09
7.1.30.0130.00615.66
7.1.20.0130.00616.13
7.1.10.0100.00315.94
7.1.00.0120.04019.12
7.0.330.0070.01415.68
7.0.320.0100.00715.44
7.0.310.0030.01415.65
7.0.300.0040.00715.24
7.0.290.0070.00715.35
7.0.280.0090.00615.42
7.0.270.0060.00515.69
7.0.260.0050.00515.55
7.0.250.0060.00915.30
7.0.240.0070.01115.25
7.0.230.0160.00615.61
7.0.220.0090.00615.48
7.0.210.0190.00615.45
7.0.200.0040.00616.35
7.0.190.0040.00815.64
7.0.180.0000.01515.67
7.0.170.0120.00315.78
7.0.160.0160.01015.58
7.0.150.0200.00315.41
7.0.140.0070.04018.93
7.0.130.0230.00015.37
7.0.120.0110.00815.64
7.0.110.0170.00015.62
7.0.100.0070.00715.62
7.0.90.0160.00715.63
7.0.80.0170.00615.50
7.0.70.0090.00615.64
7.0.60.0190.02817.82
7.0.50.0110.04016.71
7.0.40.0140.02816.74
7.0.30.0250.02916.92
7.0.20.0220.03416.88
7.0.10.0150.03716.89
7.0.00.0050.03216.74
5.6.380.0030.00914.59
5.6.370.0070.01114.52
5.6.360.0050.00914.38
5.6.350.0030.01514.50
5.6.340.0120.00614.13
5.6.330.0090.00913.89
5.6.320.0070.01014.18
5.6.310.0050.01514.10
5.6.300.0150.00614.01
5.6.290.0110.01114.27
5.6.280.0070.04017.72
5.6.270.0090.00914.18
5.6.260.0070.00714.06
5.6.250.0180.00013.99
5.6.240.0140.00814.24
5.6.230.0230.00714.18
5.6.220.0190.00314.18
5.6.210.0090.04517.37
5.6.200.0160.03516.04
5.6.190.0110.02717.26
5.6.180.1790.02017.53
5.6.170.0240.02217.49
5.6.160.0170.02317.36
5.6.150.0140.03516.16
5.6.140.0130.02816.38
5.6.130.0120.03816.25
5.6.120.0080.03017.60
5.6.110.0120.03017.55
5.6.100.0110.04317.68
5.6.90.0090.02617.55
5.6.80.0050.04817.35
5.6.70.1560.02017.35
5.6.60.0110.00414.34
5.6.50.0190.00814.22
5.6.40.0090.00914.11
5.6.30.0070.01114.00
5.6.20.0200.00814.30
5.6.10.0040.01514.28
5.6.00.0070.01114.35
5.5.380.0050.00510.87
5.5.370.0170.00711.05
5.5.360.0250.00011.20
5.5.350.0310.04015.80
5.5.340.0110.03914.63
5.5.330.0140.02615.78
5.5.320.0340.03015.65
5.5.310.0250.04415.62
5.5.300.0060.02814.52
5.5.290.0040.04214.41
5.5.280.0070.03216.00
5.5.270.0080.04515.67
5.5.260.0150.03215.87
5.5.250.0080.02415.83
5.5.240.0190.03415.43
5.5.230.0000.00910.97
5.5.220.0090.00310.67
5.5.210.0100.01010.92
5.5.200.0090.00610.82
5.5.190.0110.00010.91
5.5.180.0090.00410.84
5.5.170.0050.00510.98
5.5.160.0030.00710.82
5.5.150.0150.00010.83
5.5.140.0070.01010.71
5.5.130.0090.00610.84
5.5.120.0090.00311.26
5.5.110.0030.01010.81
5.5.100.0030.00910.84
5.5.90.0030.00710.73
5.5.80.0040.00810.96
5.5.70.0110.00010.93
5.5.60.0100.00010.51
5.5.50.0110.00010.88
5.5.40.0040.00410.71
5.5.30.0000.00610.52
5.5.20.0040.00410.70
5.5.10.0000.01210.58
5.5.00.0030.01010.99
5.4.450.0230.02827.28
5.4.440.0210.01823.97
5.4.430.0240.02122.25
5.4.420.0250.02722.14
5.4.410.0170.02722.38
5.4.400.0200.02422.31
5.4.390.0120.02721.11
5.4.380.0100.03614.69
5.4.370.0210.03814.71
5.4.360.0120.03114.79
5.4.350.0160.03614.87
5.4.340.0280.02414.81
5.4.330.0110.00310.63
5.4.320.0150.02111.82
5.4.310.0100.02411.69
5.4.300.0170.02111.75
5.4.290.0090.02911.68
5.4.280.0070.02511.59
5.4.270.0070.02611.66
5.4.260.0020.02511.47
5.4.250.0060.02411.52
5.4.240.0050.02411.64
5.4.230.0060.02211.60
5.4.220.0070.02211.56
5.4.210.0070.02211.65
5.4.200.0100.01911.73
5.4.190.0070.02211.77
5.4.180.0070.02611.58
5.4.170.0100.02311.60
5.4.160.0060.02311.52
5.4.150.0060.02511.73
5.4.140.0080.02511.51
5.4.130.0080.02211.58
5.4.120.0080.02011.56
5.4.110.0040.03111.32
5.4.100.0020.02411.37
5.4.90.0040.02211.42
5.4.80.0050.02211.30
5.4.70.0080.01911.42
5.4.60.0050.02611.24
5.4.50.0060.02811.29
5.4.40.0110.01811.43
5.4.30.0100.01611.41
5.4.20.0020.02311.39
5.4.10.0060.02311.38
5.4.00.0070.02011.00
5.3.290.0110.01911.68
5.3.280.0030.02411.60
5.3.270.0040.02711.63
5.3.260.0040.02511.55
5.3.250.0020.02511.69
5.3.240.0050.02711.59
5.3.230.0080.02411.54
5.3.220.0050.02311.49
5.3.210.0040.02811.59
5.3.200.0060.02211.59
5.3.190.0020.02411.46
5.3.180.0050.02111.63
5.3.170.0050.02011.52
5.3.160.0040.02211.59
5.3.150.0060.02111.53
5.3.140.0070.02211.59
5.3.130.0060.02311.56
5.3.120.0060.02011.51
5.3.110.0060.02311.54
5.3.100.0020.02611.28
5.3.90.0050.02111.32
5.3.80.0040.02411.22
5.3.70.0040.02211.28
5.3.60.0080.02311.29
5.3.50.0060.02411.18
5.3.40.0050.01911.18
5.3.30.0070.01911.10
5.3.20.0020.02411.09
5.3.10.0070.02010.93
5.3.00.0080.01811.04
5.2.170.0030.0179.37
5.2.160.0040.0189.37
5.2.150.0040.0219.21
5.2.140.0040.0229.30
5.2.130.0030.0229.29
5.2.120.0020.0189.34
5.2.110.0030.0199.19
5.2.100.0020.0209.32
5.2.90.0050.0149.29
5.2.80.0040.0189.26
5.2.70.0030.0259.33
5.2.60.0050.0179.09
5.2.50.0040.0199.22
5.2.40.0040.0169.26
5.2.30.0050.0239.03
5.2.20.0020.0209.13
5.2.10.0060.0189.06
5.2.00.0020.0188.99
5.1.60.0060.0138.30
5.1.50.0020.0238.20
5.1.40.0030.0178.36
5.1.30.0070.0148.58
5.1.20.0050.0228.55
5.1.10.0070.0178.29
5.1.00.0020.0198.25
5.0.50.0030.0137.49
5.0.40.0030.0127.41
5.0.30.0040.0187.32
5.0.20.0070.0097.30
5.0.10.0070.0097.29
5.0.00.0020.0207.29
4.4.90.0040.0096.55
4.4.80.0020.0116.54
4.4.70.0050.0086.54
4.4.60.0040.0106.54
4.4.50.0020.0126.55
4.4.40.0060.0126.52
4.4.30.0040.0096.54
4.4.20.0030.0096.59
4.4.10.0010.0116.59
4.4.00.0050.0146.54
4.3.110.0030.0116.50
4.3.100.0020.0136.50
4.3.90.0060.0076.48
4.3.80.0040.0146.46
4.3.70.0040.0096.48
4.3.60.0010.0116.48
4.3.50.0040.0096.48
4.3.40.0040.0136.43
4.3.30.0030.0105.81
4.3.20.0020.0115.80
4.3.10.0040.0135.78
4.3.00.0060.00819.80

preferences:
45.73 ms | 401 KiB | 5 Q