3v4l.org

run code in 300+ PHP versions simultaneously
<?php function outputEmail($email){ $valid = isValidEmail($email); if($valid){ return 1 . PHP_EOL; } else{ return 0 . PHP_EOL; } } function isValidEmail($email){ return filter_var($email, FILTER_VALIDATE_EMAIL); } $test = "test"; echo $test . " : " . outputEmail($test); $test = "test'@gmail"; echo $test . " : " . outputEmail($test); $test = "test@gamil.com"; echo $test . " : " . outputEmail($test);

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.0040.01118.93
8.3.50.0110.00922.33
8.3.40.0130.01019.21
8.3.30.0120.00319.52
8.3.20.0080.00020.41
8.3.10.0030.00624.09
8.3.00.0080.00019.93
8.2.180.0030.01916.88
8.2.170.0000.01522.96
8.2.160.0120.00321.61
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0000.00821.06
8.2.110.0090.00022.62
8.2.100.0040.00820.07
8.2.90.0050.00519.72
8.2.80.0040.00418.30
8.2.70.0040.00418.00
8.2.60.0000.00918.30
8.2.50.0080.00018.13
8.2.40.0100.00018.72
8.2.30.0000.00818.50
8.2.20.0030.00518.17
8.2.10.0050.00318.50
8.2.00.0040.00418.25
8.1.280.0100.01025.92
8.1.270.0000.00922.61
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0060.00321.32
8.1.230.0090.00319.35
8.1.220.0000.00818.04
8.1.210.0030.00618.77
8.1.200.0070.00417.85
8.1.190.0000.00817.89
8.1.180.0080.00019.11
8.1.170.0040.00819.02
8.1.160.0090.00022.20
8.1.150.0000.00819.10
8.1.140.0030.00617.75
8.1.130.0040.00418.03
8.1.120.0080.00017.69
8.1.110.0060.00317.77
8.1.100.0000.00917.73
8.1.90.0040.00417.78
8.1.80.0040.00417.73
8.1.70.0020.00517.70
8.1.60.0030.00617.92
8.1.50.0000.00817.79
8.1.40.0030.00617.75
8.1.30.0060.00317.95
8.1.20.0030.00617.91
8.1.10.0040.00717.87
8.1.00.0040.00719.81
8.0.300.0050.00318.77
8.0.290.0000.00817.29
8.0.280.0040.00418.64
8.0.270.0050.00317.51
8.0.260.0030.00317.45
8.0.250.0000.00717.28
8.0.240.0080.00017.27
8.0.230.0000.01117.24
8.0.220.0000.00817.31
8.0.210.0040.00417.18
8.0.200.0040.00417.32
8.0.190.0030.00617.29
8.0.180.0040.00417.18
8.0.170.0000.00917.24
8.0.160.0040.00417.19
8.0.150.0000.00717.16
8.0.140.0040.00417.15
8.0.130.0000.00613.68
8.0.120.0030.00617.21
8.0.110.0030.00617.21
8.0.100.0040.00417.30
8.0.90.0040.00417.30
8.0.80.0080.00817.24
8.0.70.0060.00317.33
8.0.60.0000.00817.33
8.0.50.0000.00817.21
8.0.30.0090.01417.51
8.0.20.0080.01217.41
8.0.10.0050.00317.32
8.0.00.0050.01317.07
7.4.330.0030.00315.44
7.4.320.0000.00716.94
7.4.300.0070.00017.02
7.4.290.0000.00716.92
7.4.280.0030.00517.09
7.4.270.0050.00217.03
7.4.260.0000.00816.95
7.4.250.0030.00616.82
7.4.240.0030.00517.01
7.4.230.0030.00517.08
7.4.220.0030.01617.04
7.4.210.0090.01317.06
7.4.200.0000.00716.98
7.4.160.0060.01016.98
7.4.150.0120.00617.40
7.4.140.0100.01117.86
7.4.130.0090.01016.91
7.4.120.0070.01116.83
7.4.110.0060.01216.91
7.4.100.0100.01017.07
7.4.90.0090.00916.83
7.4.80.0060.01219.39
7.4.70.0060.01216.92
7.4.60.0070.01017.07
7.4.50.0060.00316.79
7.4.40.0060.01216.74
7.4.30.0090.00816.97
7.4.00.0050.01215.28
7.3.330.0000.00613.42
7.3.320.0060.00013.51
7.3.310.0000.00716.68
7.3.300.0000.00716.52
7.3.290.0070.01016.65
7.3.280.0070.00916.68
7.3.270.0000.02017.40
7.3.260.0090.01616.71
7.3.250.0110.00716.73
7.3.240.0070.01116.76
7.3.230.0060.01216.80
7.3.210.0100.01416.77
7.3.200.0090.00919.39
7.3.190.0090.00916.68
7.3.180.0100.00616.92
7.3.170.0100.01116.80
7.3.160.0100.00716.98
7.3.120.0040.01514.82
7.3.110.0100.00615.40
7.3.100.0070.01115.18
7.3.90.0130.00315.25
7.3.80.0100.00615.11
7.3.70.0000.01814.96
7.3.60.0060.00915.14
7.3.50.0080.00815.26
7.3.40.0000.01815.15
7.3.30.0000.01014.74
7.3.20.0100.00717.05
7.3.10.0060.00917.04
7.3.00.0060.01016.95
7.2.330.0130.00617.12
7.2.320.0130.00917.06
7.2.310.0030.01516.87
7.2.300.0040.01316.98
7.2.290.0130.01016.94
7.2.250.0040.01115.25
7.2.240.0100.01015.53
7.2.230.0030.01515.33
7.2.220.0060.01015.29
7.2.210.0030.01015.03
7.2.200.0030.01315.26
7.2.190.0030.01015.29
7.2.180.0000.01615.35
7.2.170.0090.00315.45
7.2.60.0260.00317.11
7.2.00.0030.00919.69
7.1.330.0090.00615.99
7.1.320.0040.01116.20
7.1.310.0070.01515.97
7.1.300.0060.00915.95
7.1.290.0030.01215.91
7.1.280.0060.00616.02
7.1.270.0000.01416.13
7.1.260.0130.00316.18
7.1.200.0060.01116.18
7.1.100.0030.00618.46
7.1.70.0050.00317.45
7.1.60.0040.01819.29
7.1.50.0060.00617.09
7.1.00.0000.08022.84
7.0.200.0550.00715.33
7.0.140.0070.07022.40
7.0.60.0030.08720.19
7.0.50.0100.03318.08
7.0.40.0030.09020.20
7.0.30.0500.04720.28
7.0.20.0300.08020.37
7.0.10.0030.07320.31
7.0.00.0130.07320.22
5.6.280.0130.06321.13
5.6.210.0000.04320.49
5.6.200.0070.04318.23
5.6.190.0130.07720.63
5.6.180.3430.04020.60
5.6.170.0270.05020.55
5.6.160.0030.04720.62
5.6.150.0030.05718.22
5.6.140.0070.03718.33
5.6.130.0070.04318.33
5.6.120.0130.07321.12
5.6.110.0130.07721.01
5.6.100.0130.07320.99
5.6.90.0100.04721.16
5.6.80.0100.06720.41
5.6.70.0370.06720.55
5.5.350.0300.07020.43
5.5.340.0100.08317.97
5.5.330.0000.09020.48
5.5.320.0200.05720.46
5.5.310.0200.03320.37
5.5.300.0030.05018.12
5.5.290.0000.04318.09
5.5.280.0030.05320.86
5.5.270.0170.04320.92
5.5.260.0030.04320.92
5.5.250.0030.04320.70
5.5.240.0130.09020.34
5.4.450.0570.06019.52
5.4.440.0730.06019.66
5.4.430.0130.05319.41
5.4.420.0100.05719.44
5.4.410.0100.07019.32
5.4.400.0100.06018.98
5.4.390.0070.05719.22
5.4.380.0130.06018.52
5.4.370.0100.06318.80
5.4.360.0230.06018.75
5.4.350.0230.03314.05
5.4.340.0200.03713.86
5.4.320.0030.05314.31
5.4.310.0170.03714.26
5.4.300.0100.04014.29
5.4.290.0100.05014.32
5.4.280.0070.05314.22
5.4.270.0100.05014.22
5.4.260.0070.04014.20
5.4.250.0030.04314.35
5.4.240.0130.03314.20
5.4.230.0070.04014.19
5.4.220.0070.03714.32
5.4.210.0100.03714.20
5.4.200.0100.04014.20
5.4.190.0070.04314.20
5.4.180.0130.03314.25
5.4.170.0100.05014.22
5.4.160.0070.04714.21
5.4.150.0070.04314.28
5.4.140.0070.04313.83
5.4.130.0130.04013.89
5.4.120.0100.04013.84
5.4.110.0070.04313.77
5.4.100.0070.03713.91
5.4.90.0100.03713.83
5.4.80.0100.03713.99
5.4.70.0070.04013.81
5.4.60.0100.03713.78
5.4.50.0000.05313.89
5.4.40.0130.03713.77
5.4.30.0100.03713.88
5.4.20.0070.04313.75
5.4.10.0030.04713.81
5.4.00.0100.03313.41
5.3.290.0100.03714.76
5.3.280.0030.04314.70
5.3.270.0070.04014.73
5.3.260.0000.05014.71
5.3.250.0030.04014.94
5.3.240.0070.04014.77
5.3.230.0000.04714.93
5.3.220.0100.03714.80
5.3.210.0000.04714.75
5.3.200.0070.03714.69
5.3.190.0030.04314.74
5.3.180.0130.03314.71
5.3.170.0100.03714.79
5.3.160.0100.03314.83
5.3.150.0070.04014.79
5.3.140.0170.03314.72
5.3.130.0100.04314.66
5.3.120.0070.04314.71
5.3.110.0070.05314.71
5.3.100.0100.04714.22
5.3.90.0070.05314.11
5.3.80.0070.05014.16
5.3.70.0170.03714.21
5.3.60.0070.04314.09
5.3.50.0100.04714.13
5.3.40.0030.04714.11
5.3.30.0070.04014.09
5.3.20.0100.04713.82
5.3.10.0070.03713.78
5.3.00.0030.04013.75
5.2.170.0100.02711.41
5.2.160.0030.03311.30
5.2.150.0070.03011.24
5.2.140.0170.02311.22
5.2.130.0000.04011.21
5.2.120.0030.04711.32
5.2.110.0030.04711.23
5.2.100.0070.04011.22
5.2.90.0030.03311.23
5.2.80.0070.03311.21
5.2.70.0070.03011.16
5.2.60.0130.03011.10
5.2.50.0030.03311.15
5.2.40.0170.03311.01
5.2.30.0100.03711.07
5.2.20.0100.03310.95
5.2.10.0030.03711.14
5.2.00.0030.03710.77
5.1.60.0070.0309.96
5.1.50.0170.03010.01
5.1.40.0200.01710.00
5.1.30.0130.02310.34
5.1.20.0070.03710.50
5.1.10.0100.03310.02
5.1.00.0000.04310.04
5.0.50.0000.0338.61
5.0.40.0070.0178.38
5.0.30.0130.0338.27
5.0.20.0130.0208.34
5.0.10.0000.0338.16
5.0.00.0030.0408.21
4.4.90.0000.0235.85
4.4.80.0030.0175.95
4.4.70.0030.0205.81
4.4.60.0030.0236.00
4.4.50.0070.0205.88
4.4.40.0030.0335.82
4.4.30.0000.0235.91
4.4.20.0070.0135.89
4.4.10.0030.0206.02
4.4.00.0000.0305.92
4.3.110.0000.0205.80
4.3.100.0000.0235.84
4.3.90.0130.0135.87
4.3.80.0030.0305.78
4.3.70.0100.0175.74
4.3.60.0030.0205.86
4.3.50.0070.0205.76
4.3.40.0000.0375.69
4.3.30.0030.0204.49
4.3.20.0030.0174.48
4.3.10.0000.0204.48
4.3.00.0030.0206.93

preferences:
50.97 ms | 400 KiB | 5 Q