3v4l.org

run code in 500+ PHP versions simultaneously
<?php $zip_codes = array( '12556', '765547', '234*', '987*' ); $target_zip = '2347890'; foreach($zip_codes as $zip){ if(strpos($zip, "*") !== false){ if(substr($zip, 0, -1) == substr($target_zip, 0, strlen($zip)-1)){ echo "wildcard match"; } }else{ if($zip == $target_zip){ echo "excat match"; } } }

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.5.70.0020.00518.55
8.5.60.0110.00716.74
8.5.50.0130.00416.64
8.5.30.0090.00817.52
8.5.20.0100.00719.73
8.5.10.0120.00616.54
8.5.00.0140.01119.96
8.4.220.0130.01019.48
8.4.210.0100.01219.40
8.4.180.0130.00919.66
8.4.170.0140.00723.91
8.4.160.0170.00822.93
8.4.150.0080.00416.83
8.4.140.0120.00917.64
8.4.130.0120.01018.79
8.4.120.0130.00820.41
8.4.110.0130.00618.85
8.4.100.0140.00717.69
8.4.90.0100.01120.45
8.4.80.0060.00518.82
8.4.70.0060.00217.85
8.4.60.0110.00918.59
8.4.50.0130.00818.55
8.4.40.0130.00617.50
8.4.30.0120.00318.76
8.4.20.0030.01617.83
8.4.10.0120.00420.22
8.3.310.0150.00518.42
8.3.300.0110.00820.88
8.3.290.0100.01020.80
8.3.280.0130.00918.60
8.3.270.0130.00716.74
8.3.260.0110.00816.56
8.3.250.0120.00719.03
8.3.240.0140.00516.65
8.3.230.0120.00716.33
8.3.220.0030.00519.01
8.3.210.0090.00516.48
8.3.200.0070.00216.64
8.3.190.0090.00919.05
8.3.180.0130.00517.00
8.3.170.0060.01318.71
8.3.160.0130.00616.67
8.3.150.0140.00519.00
8.3.140.0040.01219.04
8.3.130.0040.00416.45
8.3.120.0060.00318.79
8.3.110.0040.00418.43
8.3.100.0060.00316.46
8.3.90.0030.00726.77
8.3.80.0100.00016.48
8.3.70.0100.00316.50
8.3.60.0110.00418.43
8.3.50.0170.00324.37
8.3.40.0120.00618.66
8.3.30.0070.00718.58
8.3.20.0040.00421.81
8.3.10.0040.00421.97
8.3.00.0040.00423.53
8.2.300.0110.00918.10
8.2.290.0090.01016.43
8.2.280.0070.00116.43
8.2.270.0110.00717.38
8.2.260.0110.00716.43
8.2.250.0110.00418.36
8.2.240.0090.00017.05
8.2.230.0030.00620.94
8.2.220.0050.00324.06
8.2.210.0070.00026.77
8.2.200.0090.00016.23
8.2.190.0090.00616.58
8.2.180.0040.01416.50
8.2.170.0120.00922.96
8.2.160.0140.00020.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0050.00520.52
8.2.100.0150.00317.80
8.2.90.0000.00919.28
8.2.80.0060.00317.97
8.2.70.0080.00548.41
8.2.60.0120.00148.68
8.2.50.0070.00648.70
8.2.40.0070.00550.79
8.2.30.0060.00548.69
8.2.20.0060.00648.63
8.2.10.0070.00549.21
8.2.00.0040.00849.21
8.1.340.0100.01217.76
8.1.330.0110.00521.95
8.1.320.0110.01015.81
8.1.310.0130.00416.61
8.1.300.0090.00018.48
8.1.290.0060.00630.84
8.1.280.0110.00425.92
8.1.270.0030.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00020.90
8.1.230.0040.00720.89
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0070.00648.34
8.1.190.0070.00548.34
8.1.180.0070.00548.71
8.1.170.0090.00349.10
8.1.160.0110.00249.13
8.1.150.0090.00449.16
8.1.140.0070.00749.06
8.1.130.0050.00749.75
8.1.120.0070.00548.39
8.1.110.0070.00648.33
8.1.100.0080.00448.41
8.1.90.0100.00148.34
8.1.80.0060.00648.40
8.1.70.0060.00648.35
8.1.60.0100.00348.39
8.1.50.0110.00248.45
8.1.40.0110.00248.42
8.1.30.0070.00648.48
8.1.20.0090.00348.40
8.1.10.0070.00648.36
8.1.00.0060.00748.36
8.0.300.0020.00518.77
8.0.290.0070.00647.98
8.0.280.0090.00348.84
8.0.270.0100.00248.66
8.0.260.0080.00448.88
8.0.250.0070.00548.09
8.0.240.0050.00748.17
8.0.230.0050.00748.13
8.0.220.0050.00648.08
8.0.210.0050.00648.12
8.0.200.0080.00348.13
8.0.190.0020.01148.10
8.0.180.0070.00448.06
8.0.170.0110.00148.10
8.0.160.0120.00048.12
8.0.150.0090.00448.09
8.0.140.0070.00548.04
8.0.130.0040.00746.35
8.0.120.0070.00648.09
8.0.110.0040.00848.05
8.0.100.0080.00448.02
8.0.90.0080.00348.13
8.0.80.0090.00737.68
8.0.70.0080.00448.03
8.0.60.0070.00548.05
8.0.50.0100.00248.11
8.0.30.0090.00948.18
8.0.20.0140.00637.84
8.0.10.0090.00248.18
8.0.00.0060.01048.06
7.4.330.0050.00547.44
7.4.320.0090.00247.86
7.4.300.0000.01147.94
7.4.290.0100.00247.94
7.4.280.0120.00047.95
7.4.270.0060.00547.96
7.4.260.0080.00347.88
7.4.250.0100.00247.86
7.4.240.0090.00137.44
7.4.230.0080.00347.91
7.4.220.0100.00147.93
7.4.210.0080.00832.22
7.4.200.0090.00348.00
7.4.190.0150.00079.33
7.4.180.0130.00379.33
7.4.160.0140.00379.33
7.4.150.0130.00479.33
7.4.140.0070.00779.33
7.4.130.0080.01137.46
7.4.120.0070.01047.97
7.4.110.0080.00847.82
7.4.100.0070.00947.87
7.4.90.0120.00447.94
7.4.80.0050.01149.36
7.4.70.0040.01147.88
7.4.60.0080.00747.90
7.4.50.0070.00747.89
7.4.40.0090.00747.87
7.4.30.0060.01247.88
7.4.20.0120.00347.95
7.4.10.0110.00447.79
7.4.00.0110.00547.86
7.3.330.0080.00347.74
7.3.320.0090.00246.22
7.3.310.0040.00747.81
7.3.300.0050.00547.82
7.3.290.0090.00832.10
7.3.280.0170.00079.33
7.3.270.0150.00079.33
7.3.260.0090.00747.89
7.3.250.0150.00079.33
7.3.240.0120.00479.33
7.3.230.0070.00847.91
7.3.220.0120.00479.33
7.3.210.0110.00547.90
7.3.200.0060.01247.83
7.3.190.0050.01347.78
7.3.180.0140.00247.93
7.3.170.0090.00747.89
7.3.160.0100.00847.80
7.3.150.0130.00347.85
7.3.140.0090.00547.79
7.3.130.0080.00747.81
7.3.120.0070.00847.82
7.3.110.0130.00447.95
7.3.100.0070.00847.86
7.3.90.0050.01147.74
7.3.80.0080.00847.94
7.3.70.0060.01047.89
7.3.60.0130.00347.76
7.3.50.0130.00447.89
7.3.40.0140.00247.82
7.3.30.0070.01147.86
7.3.20.0290.00547.89
7.3.10.0250.00247.82
7.3.00.0170.00847.81
7.2.340.0150.00079.33
7.2.330.0130.00847.93
7.2.320.0110.00548.04
7.2.310.0100.00547.89
7.2.300.0110.00647.94
7.2.290.0140.00347.89
7.2.280.0110.00548.02
7.2.270.0020.01247.93
7.2.260.0090.00747.90
7.2.250.0080.00847.92
7.2.240.0100.00647.81
7.2.230.0150.00247.88
7.2.220.0130.00347.90
7.2.210.0070.00948.02
7.2.200.0130.00447.96
7.2.190.0090.00947.98
7.2.180.0110.00547.97
7.2.170.0120.00347.90
7.2.160.0060.01047.88
7.2.150.0080.01048.01
7.2.140.0120.00847.99
7.2.130.0090.00947.88
7.2.120.0100.00747.89
7.2.110.0100.01047.88
7.2.100.0140.00247.91
7.2.90.0130.00347.87
7.2.80.0090.00747.99
7.2.70.0060.01148.00
7.2.60.0070.01147.92
7.2.50.0140.00247.99
7.2.40.0090.00847.98
7.2.30.0100.00747.97
7.2.20.0140.00247.95
7.2.10.0220.00547.91
7.2.00.0070.01047.91

preferences:
95.31 ms | 1548 KiB | 5 Q