3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objs = (object)[ 'data' => [ (object)['guestEmail' => 'bad@example.com'], (object)['guestEmail' => 'okay@goodstuff.com'], (object)['guestEmail' => 'nope@example1.com'] ] ]; $blacklist = ['@example.com', 'example1.com']; $regex = '~\Q' . implode('\E|\Q', $blacklist) . '\E~'; foreach ($objs->data as $row) { if (!preg_match($regex, $row->guestEmail)) { $emails[] = $row->guestEmail; } } var_export($emails);

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.0040.01418.45
8.3.60.0120.00318.43
8.3.50.0140.00316.46
8.3.40.0130.00319.09
8.3.30.0090.00618.96
8.3.20.0040.00419.29
8.3.10.0050.00323.50
8.3.00.0040.00422.44
8.2.190.0100.00717.00
8.2.180.0120.00316.63
8.2.170.0100.00622.96
8.2.160.0070.01021.33
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00721.17
8.2.120.0090.00926.35
8.2.110.0100.00019.38
8.2.100.0080.00317.97
8.2.90.0050.00318.09
8.2.80.0000.00818.09
8.2.70.0000.00818.00
8.2.60.0030.00617.75
8.2.50.0080.00018.10
8.2.40.0000.00821.31
8.2.30.0000.00720.65
8.2.20.0080.00018.09
8.2.10.0070.00018.13
8.2.00.0000.00719.44
8.1.280.0070.00725.92
8.1.270.0150.00323.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0110.00020.88
8.1.220.0030.00617.79
8.1.210.0050.00318.84
8.1.200.0030.00517.35
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0030.00618.73
8.1.160.0060.00318.91
8.1.150.0070.00018.84
8.1.140.0040.00419.03
8.1.130.0000.00718.96
8.1.120.0040.00417.55
8.1.110.0050.00317.67
8.1.100.0050.00317.65
8.1.90.0000.00917.65
8.1.80.0040.00417.52
8.1.70.0040.00417.61
8.1.60.0000.00917.63
8.1.50.0000.00717.56
8.1.40.0030.00617.56
8.1.30.0040.00417.86
8.1.20.0000.00717.77
8.1.10.0000.00817.69
8.1.00.0040.00417.71
8.0.300.0030.00320.03
8.0.290.0000.00716.88
8.0.280.0000.00718.38
8.0.270.0040.00417.03
8.0.260.0000.00718.42
8.0.250.0070.00017.08
8.0.240.0000.00717.15
8.0.230.0080.00017.08
8.0.220.0030.00316.98
8.0.210.0000.00816.98
8.0.200.0000.00717.18
8.0.190.0030.00617.16
8.0.180.0080.00016.96
8.0.170.0030.00617.16
8.0.160.0070.00017.14
8.0.150.0070.00416.93
8.0.140.0040.00417.03
8.0.130.0060.00013.54
8.0.120.0100.00017.06
8.0.110.0040.00417.11
8.0.100.0000.00717.14
8.0.90.0040.00417.06
8.0.80.0060.00917.14
8.0.70.0000.00716.90
8.0.60.0000.00717.08
8.0.50.0000.00716.97
8.0.30.0070.01017.23
8.0.20.0170.01017.40
8.0.10.0080.00017.18
8.0.00.0160.00717.01
7.4.330.0000.00515.55
7.4.320.0000.00716.68
7.4.300.0030.00316.72
7.4.290.0040.00416.84
7.4.280.0040.00416.81
7.4.270.0070.00016.73
7.4.260.0080.00016.69
7.4.250.0040.00416.64
7.4.240.0030.00316.70
7.4.230.0040.00416.80
7.4.220.0000.00816.79
7.4.210.0050.01216.79
7.4.200.0030.00316.66
7.4.160.0080.00916.73
7.4.140.0100.01217.86
7.4.130.0070.01016.65
7.4.120.0110.00816.75
7.4.110.0100.00716.95
7.4.100.0130.01016.69
7.4.90.0100.01116.87
7.4.80.0140.00319.39
7.4.70.0130.00916.48
7.4.60.0120.00616.85
7.4.50.0090.00616.73
7.4.40.0130.00516.51
7.4.00.0110.00314.91
7.3.330.0000.00513.30
7.3.320.0030.00313.25
7.3.310.0040.00416.50
7.3.300.0030.00316.25
7.3.290.0090.00516.43
7.3.280.0080.01016.44
7.3.260.0110.01016.63
7.3.240.0100.01116.61
7.3.230.0090.00916.65
7.3.210.0110.01116.72
7.3.200.0110.00616.42
7.3.190.0060.00916.70
7.3.180.0100.00716.73
7.3.170.0110.00616.36
7.3.160.0100.00716.48
7.3.10.0070.00716.89
7.3.00.0080.00816.42
7.2.330.0040.01416.73
7.2.320.0120.00916.70
7.2.310.0060.01316.95
7.2.300.0030.01416.84
7.2.290.0100.00716.77
7.2.130.0000.01317.09
7.2.120.0070.00717.16
7.2.110.0070.00516.94
7.2.100.0030.01016.70
7.2.90.0650.01316.08
7.2.80.0870.00816.03
7.2.70.0730.00716.06
7.2.60.0660.00515.92
7.2.50.0640.00315.92
7.2.40.0610.01115.99
7.2.30.0740.00715.85
7.2.20.0670.00816.05
7.2.10.0660.00816.08
7.2.00.0670.00716.04
7.1.250.0030.00616.10
7.1.210.1660.01014.00
7.1.200.1900.00714.25
7.1.190.1450.01313.88
7.1.180.1350.00313.68
7.1.170.1960.00313.65
7.1.160.1270.01013.51
7.1.150.1130.00713.51
7.1.140.1180.00313.91
7.1.130.1100.01013.55
7.1.120.1680.00613.92
7.1.110.1270.00714.04
7.1.100.1660.00613.83
7.1.90.1590.01313.61
7.1.80.1710.00713.61
7.1.70.1760.01313.73
7.1.60.1690.01331.82
7.1.50.2620.01031.91
7.1.40.3100.00331.91
7.1.30.3780.01631.89
7.1.20.4360.00731.76
7.1.10.2550.00713.46
7.1.00.1900.00713.86

preferences:
19 ms | 401 KiB | 5 Q