3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkPhysicalAddressOnFile($addresses) { return (bool) count(array_filter($addresses, function($address) { return !preg_match("/p\.o\. box|p\.o box|po box|po\. box|pobox|post office box/i", $address); })); } echo "First test:\n"; var_dump(checkPhysicalAddressOnFile([ "P.O. box 123", "123 Main St" ])); echo "\nSecond test:\n"; var_dump(checkPhysicalAddressOnFile([ "P.O. box 123", "Post Office Box 999" ]));

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.70.0140.00716.71
8.3.60.0070.00718.43
8.3.50.0110.00521.21
8.3.40.0110.00718.79
8.3.30.0140.00018.72
8.3.20.0000.00818.86
8.3.10.0040.00421.73
8.3.00.0050.00320.95
8.2.190.0100.01016.63
8.2.180.0000.01516.50
8.2.170.0150.00022.96
8.2.160.0100.00319.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00422.42
8.2.120.0000.00726.35
8.2.110.0090.00022.32
8.2.100.0090.00320.97
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0080.00017.78
8.2.50.0060.00318.10
8.2.40.0000.00720.41
8.2.30.0080.00020.59
8.2.20.0000.00717.85
8.2.10.0000.00818.10
8.2.00.0040.00418.03
8.1.280.0100.00725.92
8.1.270.0040.00423.73
8.1.260.0050.00328.09
8.1.250.0000.00828.09
8.1.240.0040.00423.83
8.1.230.0140.00019.00
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.38
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0030.00518.77
8.1.160.0040.00420.97
8.1.150.0040.00418.91
8.1.140.0040.00419.55
8.1.130.0070.00017.58
8.1.120.0040.00417.61
8.1.110.0040.00417.54
8.1.100.0030.00617.52
8.1.90.0000.00717.54
8.1.80.0050.00317.56
8.1.70.0000.00717.48
8.1.60.0030.00617.66
8.1.50.0000.00817.64
8.1.40.0060.00617.68
8.1.30.0000.00817.61
8.1.20.0040.00417.61
8.1.10.0000.00817.50
8.1.00.0030.00517.55
8.0.300.0040.00418.77
8.0.290.0100.00016.75
8.0.280.0030.00318.46
8.0.270.0040.00417.16
8.0.260.0030.00317.19
8.0.250.0000.00617.10
8.0.240.0000.00716.98
8.0.230.0050.00217.03
8.0.220.0080.00016.83
8.0.210.0040.00416.90
8.0.200.0000.00716.96
8.0.190.0040.00416.91
8.0.180.0000.00716.96
8.0.170.0040.00416.92
8.0.160.0050.00217.00
8.0.150.0000.00816.95
8.0.140.0030.00317.01
8.0.130.0030.00313.40
8.0.120.0090.00016.84
8.0.110.0000.00817.00
8.0.100.0070.00016.93
8.0.90.0050.00216.94
8.0.80.0120.00316.94
8.0.70.0050.00216.85
8.0.60.0000.00817.06
8.0.50.0000.00816.84
8.0.30.0130.00617.11
8.0.20.0110.01017.40
8.0.10.0070.00016.98
8.0.00.0110.00816.81
7.4.330.0000.00515.08
7.4.320.0000.00716.69
7.4.300.0030.00316.66
7.4.290.0000.00716.73
7.4.280.0070.00016.75
7.4.270.0070.00016.72
7.4.260.0070.00016.64
7.4.250.0070.00016.63
7.4.240.0020.00516.64
7.4.230.0070.00016.66
7.4.220.0110.00716.83
7.4.210.0130.00216.76
7.4.200.0070.00016.46
7.4.160.0050.00916.70
7.4.150.0080.01117.40
7.4.140.0140.00817.86
7.4.130.0090.00916.54
7.4.120.0140.00316.66
7.4.110.0100.00716.81
7.4.100.0100.01316.46
7.4.90.0160.00616.73
7.4.80.0140.00819.39
7.4.70.0070.01016.66
7.4.60.0130.00616.84
7.4.50.0000.01516.59
7.4.40.0150.00316.54
7.4.30.0130.00316.72
7.4.00.0040.00815.29
7.3.330.0000.00713.19
7.3.320.0030.00313.36
7.3.310.0030.00316.41
7.3.300.0000.00716.41
7.3.290.0000.00716.38
7.3.280.0070.01016.43
7.3.270.0090.00917.40
7.3.260.0090.00916.58
7.3.250.0120.00716.44
7.3.240.0100.00716.85
7.3.230.0120.00616.71
7.3.210.0100.00716.59
7.3.200.0100.00616.63
7.3.190.0070.00916.84
7.3.180.0060.01116.46
7.3.170.0180.00016.53
7.3.160.0060.01016.45
7.2.330.0180.00016.84
7.2.320.0090.00916.86
7.2.310.0150.00316.70
7.2.300.0100.00716.68
7.2.290.0070.01016.95
7.2.60.0090.00916.86
7.2.00.0000.01419.14
7.1.200.0000.01415.79
7.1.100.0040.01117.95
7.1.70.0030.00717.36
7.1.60.0140.01020.41
7.1.00.0030.07722.47
7.0.200.0280.01114.96
7.0.60.0100.06721.87
7.0.50.0030.06717.98
7.0.40.0200.05320.35
7.0.30.0170.06020.41
7.0.20.0230.05320.32
7.0.10.0270.05320.12
7.0.00.0130.06020.28
5.6.280.0000.07720.87
5.6.210.0070.08020.61
5.6.200.0070.04018.18
5.6.190.0370.06020.44
5.6.180.0230.05320.77
5.6.170.0300.04720.66
5.6.160.0000.07320.67
5.6.150.0200.06320.41
5.6.140.0200.05320.59
5.6.130.0300.04720.20
5.6.120.0100.06320.44
5.6.110.0230.04720.32
5.6.100.0100.05720.40
5.6.90.0130.06320.39
5.6.80.0400.06019.80
5.6.70.0370.05719.58
5.6.60.0400.05319.77
5.6.50.0300.05319.97
5.6.40.0270.06019.95
5.6.30.0300.06319.72
5.6.20.0300.05319.75
5.6.10.0430.04719.71
5.6.00.0270.06019.94
5.5.350.0300.08020.44
5.5.340.0070.04017.98
5.5.330.0170.06320.57
5.5.320.0170.05720.41
5.5.310.0270.06320.20
5.5.300.0170.06320.03
5.5.290.0170.06020.17
5.5.280.0370.05020.10
5.5.270.0070.06720.16
5.5.260.0070.06720.22
5.5.250.0230.05720.01
5.5.240.0300.05719.56
5.5.230.0400.05019.58
5.5.220.0600.05019.59
5.5.210.0230.07019.76
5.5.200.0400.06019.35
5.5.190.0400.05319.42
5.5.180.0470.05019.48
5.5.160.0330.05319.50
5.5.150.0330.05319.56
5.5.140.0230.06319.42
5.5.130.0330.06019.52
5.5.120.0430.04719.47
5.5.110.0330.06019.50
5.5.100.0170.05019.45
5.5.90.0200.04719.44
5.5.80.0230.05019.45
5.5.70.0370.06019.32
5.5.60.0470.07019.63
5.5.50.0430.04719.47
5.5.40.0470.04719.47
5.5.30.0500.06719.63
5.5.20.0470.04319.32
5.5.10.0300.05719.46
5.5.00.0400.06019.36

preferences:
55.77 ms | 401 KiB | 5 Q