3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ ['foo=bar', 'email=foo@'], //invalid email ['foo=bar'], // no email, ['foo=bar', 'email=foo@example.com'], //valid email ]; foreach ($tests as $args) { load_args($args); print_filter(); } function load_args($args) { $str = implode("&", $args); echo "Loading $str into \$_GET\n"; parse_str($str, $_GET); } function print_filter() { $filter = filter_var_array($_GET, [ 'email' => FILTER_VALIDATE_EMAIL, ]); var_dump($filter); }

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.0060.01217.13
8.3.50.0070.01417.98
8.3.40.0120.00419.39
8.3.30.0070.01019.09
8.3.20.0080.00019.23
8.3.10.0030.00621.21
8.3.00.0070.00319.79
8.2.180.0090.00617.25
8.2.170.0090.00622.96
8.2.160.0060.00921.47
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0060.00320.63
8.2.110.0060.00321.19
8.2.100.0060.00618.32
8.2.90.0000.00919.84
8.2.80.0000.00819.83
8.2.70.0090.00317.62
8.2.60.0030.00618.30
8.2.50.0090.00018.07
8.2.40.0030.00518.72
8.2.30.0040.00418.57
8.2.20.0040.00418.18
8.2.10.0030.00618.32
8.2.00.0060.00318.26
8.1.280.0090.00625.92
8.1.270.0030.00524.66
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0030.00722.79
8.1.230.0090.00321.40
8.1.220.0030.00617.92
8.1.210.0000.01319.21
8.1.200.0030.00617.85
8.1.190.0030.00617.90
8.1.180.0030.00618.10
8.1.170.0050.00319.32
8.1.160.0060.00319.21
8.1.150.0030.00518.95
8.1.140.0050.00317.90
8.1.130.0070.00018.06
8.1.120.0000.00817.64
8.1.110.0000.00817.84
8.1.100.0000.00717.64
8.1.90.0030.00717.87
8.1.80.0090.00017.70
8.1.70.0000.00717.80
8.1.60.0030.00617.91
8.1.50.0030.00617.80
8.1.40.0000.01117.86
8.1.30.0080.00017.92
8.1.20.0030.00517.86
8.1.10.0040.00417.79
8.1.00.0040.00719.75
8.0.300.0000.00920.18
8.0.290.0040.00417.00
8.0.280.0040.00418.65
8.0.270.0040.00417.43
8.0.260.0070.00017.00
8.0.250.0080.00017.09
8.0.240.0000.00717.27
8.0.230.0000.00717.18
8.0.220.0000.00817.18
8.0.210.0080.00017.16
8.0.200.0000.00717.23
8.0.190.0040.00417.24
8.0.180.0000.00917.11
8.0.170.0030.00717.09
8.0.160.0040.00417.23
8.0.150.0000.01017.03
8.0.140.0030.00717.04
8.0.130.0030.00313.70
8.0.120.0040.00417.21
8.0.110.0040.00417.20
8.0.100.0000.00817.25
8.0.90.0030.00517.26
8.0.80.0000.01817.17
8.0.70.0040.00417.16
8.0.60.0040.00417.30
8.0.50.0040.00417.24
8.0.30.0210.00017.47
8.0.20.0090.01317.50
8.0.10.0030.00617.24
8.0.00.0120.00817.25
7.4.330.0000.00513.43
7.4.320.0000.00716.95
7.4.300.0000.00717.03
7.4.290.0000.00817.07
7.4.280.0000.01016.79
7.4.270.0050.00317.07
7.4.260.0000.00613.74
7.4.250.0070.00417.00
7.4.240.0040.00416.93
7.4.230.0030.00617.00
7.4.220.0160.01016.84
7.4.210.0090.01116.97
7.4.200.0050.00317.04
7.4.190.0020.00517.05
7.4.160.0150.00316.84
7.4.150.0070.02017.00
7.4.140.0110.01016.81
7.4.130.0120.00916.81
7.4.120.0090.00916.91
7.4.110.0090.00916.73
7.4.100.0170.00616.82
7.4.90.0130.00616.91
7.4.80.0080.01417.11
7.4.70.0080.00816.79
7.4.60.0100.01016.99
7.4.50.0000.01416.87
7.4.40.0120.00316.61
7.4.30.0060.01316.85
7.4.00.0110.00715.18
7.3.330.0000.00813.57
7.3.320.0030.00313.76
7.3.310.0000.00816.84
7.3.300.0000.00716.74
7.3.290.0070.00716.79
7.3.280.0080.01016.72
7.3.270.0160.00316.64
7.3.260.0090.01016.67
7.3.250.0110.01216.81
7.3.240.0170.00316.98
7.3.230.0100.01016.67
7.3.210.0070.01116.74
7.3.200.0030.01619.39
7.3.190.0150.00916.78
7.3.180.0030.01316.73
7.3.170.0130.00417.00
7.3.160.0100.00716.93
7.3.120.0060.00914.84
7.3.10.0070.00717.09
7.3.00.0040.00817.16
7.2.330.0140.01217.01
7.2.320.0060.01217.09
7.2.310.0070.02016.98
7.2.300.0030.01316.98
7.2.290.0030.01517.08
7.2.130.0080.00617.38
7.2.120.0080.00417.15
7.2.110.0030.01017.32
7.2.100.0030.00817.34
7.2.90.0060.00617.39
7.2.80.0000.01317.34
7.2.70.0070.00717.21
7.2.60.0080.01117.15
7.2.50.0040.01517.37
7.2.40.0030.00817.26
7.2.30.0030.01017.30
7.2.20.0030.01017.31
7.2.10.0060.00817.23
7.2.00.0080.00518.74
7.1.250.0000.01416.18
7.1.200.0060.00615.94
7.1.100.0030.00818.16
7.1.70.0000.01217.57
7.1.60.0100.01719.40
7.1.50.0100.01317.40
7.1.00.0070.03022.51
7.0.200.0080.00415.40
7.0.140.0000.08022.25
7.0.120.0130.06322.31
7.0.60.0270.06722.10
7.0.50.0030.09018.11
7.0.40.0200.04320.34
7.0.30.0200.07720.39
7.0.20.0230.08320.55
7.0.10.0270.08320.30
7.0.00.0300.05320.25
5.6.210.0100.08320.54
5.6.200.0070.08718.29
5.6.190.0200.08320.69
5.6.180.0370.06320.44
5.6.170.0200.07720.38
5.6.160.0300.07020.54
5.6.150.0100.05020.55
5.6.140.0300.06320.55
5.6.130.0130.06020.37
5.6.120.0130.08020.45
5.6.110.0200.07720.36
5.6.100.0330.07320.49
5.6.90.0170.06020.36
5.6.80.0300.07019.94
5.6.70.0230.07719.75
5.6.60.0230.08019.66
5.6.50.0270.03319.77
5.6.40.0230.04719.78
5.6.30.0200.06719.91
5.6.20.0270.06719.93
5.6.10.0200.08319.81
5.6.00.0270.05019.58
5.5.350.0300.06320.46
5.5.340.0000.04318.13
5.5.330.0200.05720.26
5.5.320.0270.06320.32
5.5.310.0400.08020.43
5.5.300.0270.07720.27
5.5.290.0270.07320.05
5.5.280.0230.08320.03
5.5.270.0200.04720.30
5.5.260.0330.04720.24
5.5.250.0170.07320.04
5.5.240.0330.06719.61
5.5.230.0270.06019.75
5.5.220.0300.06719.70
5.5.210.0200.04019.42
5.5.200.0070.05319.61
5.5.190.0270.07019.64
5.5.180.0430.06019.70
5.5.160.0330.07019.37
5.5.150.0200.07319.52
5.5.140.0270.06019.64
5.5.130.0270.06019.61
5.5.120.0330.06719.72
5.5.110.0200.07019.51
5.5.100.0230.03719.29
5.5.90.0230.07719.30
5.5.80.0200.07719.27
5.5.70.0300.06719.60
5.5.60.0270.07319.33
5.5.50.0200.06319.27
5.5.40.0270.03719.27
5.5.30.0170.08019.52
5.5.20.0200.04719.43
5.5.10.0200.05319.43
5.5.00.0230.06019.54
5.4.450.0230.07019.54
5.4.440.0270.07719.63
5.4.430.0330.07019.45
5.4.420.0300.07019.62
5.4.410.0200.07719.13
5.4.400.0130.06019.07
5.4.390.0270.07019.26
5.4.380.0370.05018.98
5.4.370.0230.05319.20
5.4.360.0270.07018.93
5.4.350.0300.07319.04
5.4.340.0230.06319.13
5.4.320.0230.06719.06
5.4.310.0330.05719.20
5.4.300.0270.06319.21
5.4.290.0230.06319.21
5.4.280.0300.03018.95
5.4.270.0300.05719.05
5.4.260.0270.06718.98
5.4.250.0270.06718.92
5.4.240.0170.04018.92
5.4.230.0230.07318.92
5.4.220.0170.07719.19
5.4.210.0330.06719.12
5.4.200.0200.07719.13
5.4.190.0330.06718.89
5.4.180.0200.07018.89
5.4.170.0200.07719.25
5.4.160.0130.05018.91
5.4.150.0170.04719.28
5.4.140.0200.03016.48
5.4.130.0130.03716.45
5.4.120.0170.03316.41
5.4.110.0130.04316.50
5.4.100.0170.03316.46
5.4.90.0130.03716.50
5.4.80.0130.03716.66
5.4.70.0130.03316.42
5.4.60.0170.03016.41
5.4.50.0130.03316.42
5.4.40.0170.03316.41
5.4.30.0130.03316.36
5.4.20.0230.03016.41
5.4.10.0200.03316.48
5.4.00.0130.04015.71
5.3.290.0230.05014.59
5.3.280.0270.06714.54
5.3.270.0230.06714.63
5.3.260.0170.04014.56
5.3.250.0170.04314.53
5.3.240.0200.03314.55
5.3.230.0230.03714.58
5.3.220.0200.03314.46
5.3.210.0130.03714.49
5.3.200.0100.04014.50
5.3.190.0170.03314.46
5.3.180.0130.04314.44
5.3.170.0230.03714.53
5.3.160.0130.03314.49
5.3.150.0170.04714.38
5.3.140.0200.07714.35
5.3.130.0270.04014.52
5.3.120.0100.04014.48
5.3.110.0170.03714.48
5.3.100.0170.07314.02
5.3.90.0170.07013.86
5.3.80.0100.05013.99
5.3.70.0100.04013.96
5.3.60.0200.03313.82
5.3.50.0130.04013.79
5.3.40.0130.04014.04
5.3.30.0070.04313.73
5.3.20.0130.03713.51
5.3.10.0170.03013.67
5.3.00.0170.03013.59
5.2.170.0170.03012.45
5.2.160.0200.02312.45
5.2.150.0170.03312.45
5.2.140.0030.03712.45
5.2.130.0070.03012.45
5.2.120.0170.03012.45
5.2.110.0100.02712.45
5.2.100.0130.02712.45
5.2.90.0100.03012.45
5.2.80.0100.03712.45
5.2.70.0130.03012.45
5.2.60.0130.03012.45
5.2.50.0200.02312.45
5.2.40.0100.02712.45
5.2.30.0170.02712.45
5.2.20.0030.03312.45
5.2.10.0130.02312.45
5.2.00.0100.02712.45
5.1.60.0130.02012.45
5.1.50.0070.03012.45
5.1.40.0070.02312.45
5.1.30.0170.02012.45
5.1.20.0130.02012.45
5.1.10.0070.02712.45
5.1.00.0070.02312.45
5.0.50.0030.02012.45
5.0.40.0070.02012.45
5.0.30.0170.03312.45
5.0.20.0030.02312.45
5.0.10.0070.02712.45
5.0.00.0100.05312.45
4.4.90.0030.01712.45
4.4.80.0030.01312.45
4.4.70.0030.01712.45
4.4.60.0030.01712.45
4.4.50.0100.00712.45
4.4.40.0070.02312.45
4.4.30.0030.01712.45
4.4.20.0070.01312.45
4.4.10.0100.01312.45
4.4.00.0070.02012.45
4.3.110.0070.01712.45
4.3.100.0100.03312.45
4.3.90.0070.03312.45
4.3.80.0300.03712.45
4.3.70.0070.03312.45
4.3.60.0100.02712.45
4.3.50.0130.03012.45
4.3.40.0100.04712.45
4.3.30.0030.03712.45
4.3.20.0030.03012.45
4.3.10.0000.03712.45
4.3.00.0000.04012.45

preferences:
57.37 ms | 401 KiB | 5 Q