3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'johnsnow@zoosk.com'; $dictionary = array('aero', 'arpa', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel'); $expression = '^[a-z0-9_-]+(?:[a-z0-9._%+-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+(?:[A-Z]{2}|' . implode('|', $dictionary) . ')$'; return mb_eregi($expression, $email) !== false ?>

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.0100.00718.68
8.3.50.0170.00322.05
8.3.40.0090.00618.61
8.3.30.0060.00918.94
8.3.20.0040.00420.29
8.3.10.0000.01123.65
8.3.00.0040.00419.01
8.2.180.0000.01918.54
8.2.170.0140.00722.96
8.2.160.0110.00320.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0050.00322.26
8.2.110.0160.00620.50
8.2.100.0030.00917.84
8.2.90.0000.00919.30
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0040.00420.01
8.2.30.0060.00318.38
8.2.20.0030.00617.63
8.2.10.0080.00018.19
8.2.00.0030.00517.81
8.1.280.0040.01925.92
8.1.270.0030.00624.00
8.1.260.0000.00826.35
8.1.250.0040.00828.09
8.1.240.0090.00023.90
8.1.230.0090.00317.58
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0030.00619.01
8.1.170.0030.00518.77
8.1.160.0000.00822.06
8.1.150.0030.00618.84
8.1.140.0040.00417.65
8.1.130.0000.00817.84
8.1.120.0000.00817.65
8.1.110.0030.00617.62
8.1.100.0000.00817.62
8.1.90.0040.00417.63
8.1.80.0040.00417.58
8.1.70.0040.00417.56
8.1.60.0030.00617.75
8.1.50.0030.00617.68
8.1.40.0000.00817.57
8.1.30.0000.00917.86
8.1.20.0060.00317.75
8.1.10.0030.00617.70
8.1.00.0000.00817.62
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0040.00418.64
8.0.270.0000.00717.27
8.0.260.0000.00717.38
8.0.250.0040.00417.11
8.0.240.0030.00317.16
8.0.230.0000.00717.10
8.0.220.0050.00217.09
8.0.210.0000.00817.04
8.0.200.0060.00316.96
8.0.190.0030.00617.10
8.0.180.0030.00517.07
8.0.170.0000.00816.96
8.0.160.0040.00417.10
8.0.150.0040.00416.99
8.0.140.0080.00316.94
8.0.130.0030.00413.48
8.0.120.0030.00617.04
8.0.110.0040.00417.00
8.0.100.0040.00416.82
8.0.90.0050.00217.11
8.0.80.0000.01517.14
8.0.70.0000.00817.14
8.0.60.0080.00016.84
8.0.50.0080.00017.10
8.0.30.0100.01317.32
8.0.20.0140.00617.47
8.0.10.0080.00017.02
8.0.00.0120.00616.87
7.4.330.0030.00315.00
7.4.320.0070.00016.86
7.4.300.0070.00016.68
7.4.290.0000.00816.56
7.4.280.0060.00316.74
7.4.270.0040.00416.69
7.4.260.0050.00516.68
7.4.250.0030.00616.67
7.4.240.0020.00616.76
7.4.230.0030.00316.51
7.4.220.0200.00716.60
7.4.210.0070.00716.82
7.4.200.0000.00716.82
7.4.190.0040.00416.46
7.4.160.0090.00616.46
7.4.150.0150.00317.40
7.4.140.0120.00917.86
7.4.130.0100.00716.60
7.4.120.0100.00916.66
7.4.110.0120.00616.51
7.4.100.0060.01516.74
7.4.90.0060.01616.65
7.4.80.0160.00619.39
7.4.70.0040.01516.80
7.4.60.0060.01316.36
7.4.50.0060.00016.47
7.4.40.0060.01316.66
7.4.30.0030.01316.63
7.4.00.0080.01015.03
7.3.330.0000.00613.18
7.3.320.0030.00313.09
7.3.310.0000.00816.34
7.3.300.0000.00716.40
7.3.290.0070.01116.43
7.3.280.0080.01016.37
7.3.270.0120.00617.40
7.3.260.0070.01116.34
7.3.250.0090.01216.34
7.3.240.0150.00616.47
7.3.230.0110.00616.39
7.3.210.0120.00616.47
7.3.200.0060.01219.39
7.3.190.0030.01416.36
7.3.180.0130.00316.47
7.3.170.0110.00516.27
7.3.160.0000.01616.32
7.3.120.0070.01014.65
7.3.110.0050.01214.74
7.3.100.0080.01014.79
7.3.90.0050.00914.77
7.3.80.0040.01314.94
7.3.70.0050.00914.84
7.3.60.0070.01014.91
7.3.50.0050.01114.66
7.3.40.0030.01014.77
7.3.30.0090.00514.92
7.3.20.0040.01016.73
7.3.10.0020.01516.40
7.3.00.0080.00416.56
7.2.330.0110.00716.51
7.2.320.0150.01016.81
7.2.310.0030.01416.74
7.2.300.0110.00716.68
7.2.290.0090.00916.76
7.2.250.0000.01915.20
7.2.240.0050.01214.90
7.2.230.0100.00415.03
7.2.220.0050.01015.08
7.2.210.0040.01015.14
7.2.200.0020.01315.10
7.2.190.0060.00815.04
7.2.180.0060.00815.00
7.2.170.0060.00615.20
7.2.160.0060.00915.07
7.2.150.0050.01016.89
7.2.140.0080.00716.92
7.2.130.0090.00716.78
7.2.120.0090.00716.87
7.2.110.0080.00716.92
7.2.100.0090.00516.85
7.2.90.0050.00917.00
7.2.80.0050.00916.86
7.2.70.0090.00816.96
7.2.60.0060.00817.00
7.2.50.0090.00716.76
7.2.40.0060.00717.04
7.2.30.0080.00616.84
7.2.20.0050.01116.87
7.2.10.0020.01416.97
7.2.00.0060.00817.55
7.1.330.0040.01415.91
7.1.320.0080.00815.88
7.1.310.0060.00815.85
7.1.300.0070.00615.85
7.1.290.0070.00916.10
7.1.280.0070.00715.91
7.1.270.0070.00915.81
7.1.260.0080.00715.90
7.1.250.0050.01216.04
7.1.240.0040.01115.59
7.1.230.0070.00715.84
7.1.220.0090.00615.82
7.1.210.0130.00016.05
7.1.200.0130.00315.89
7.1.190.0040.00815.85
7.1.180.0060.00915.88
7.1.170.0100.00316.01
7.1.160.0060.01016.03
7.1.150.0040.01415.86
7.1.140.0060.01016.04
7.1.130.0030.01215.67
7.1.120.0030.01315.96
7.1.110.0110.00515.77
7.1.100.0070.00716.96
7.1.90.0060.00615.95
7.1.80.0100.00716.05
7.1.70.0070.00816.29
7.1.60.0040.01016.59
7.1.50.0120.00716.51
7.1.40.0070.00715.86
7.1.30.0100.01016.02
7.1.20.0090.00916.04
7.1.10.0070.01015.93
7.1.00.0080.03519.23
7.0.330.0070.00715.37
7.0.320.0060.00915.43
7.0.310.0100.00715.63
7.0.300.0070.01015.49
7.0.290.0030.01315.16
7.0.280.0110.00415.55
7.0.270.0040.01215.62
7.0.260.0110.00415.45
7.0.250.0080.00415.58
7.0.240.0100.01015.52
7.0.230.0060.01215.76
7.0.220.0060.01015.73
7.0.210.0030.01215.32
7.0.200.0090.00316.07
7.0.190.0060.00915.52
7.0.180.0040.01115.27
7.0.170.0070.00715.29
7.0.160.0110.00515.32
7.0.150.0000.01415.64
7.0.140.0080.03618.82
7.0.130.0070.01015.27
7.0.120.0000.01415.52
7.0.110.0090.00615.68
7.0.100.0110.00715.71
7.0.90.0060.01215.63
7.0.80.0070.01415.50
7.0.70.0060.01215.29
7.0.60.0080.03317.80
7.0.50.0090.04316.81
7.0.40.0160.03616.95
7.0.30.0170.04216.80
7.0.20.0150.03816.74
7.0.10.0050.05017.06
7.0.00.0100.04416.79
5.6.400.0030.01014.29
5.6.390.0110.00714.60
5.6.380.0100.01014.62
5.6.370.0070.00714.15
5.6.360.0030.01014.36
5.6.350.0090.00914.24
5.6.340.0090.00614.34
5.6.330.0060.01014.45
5.6.320.0070.01014.70
5.6.310.0070.01014.24
5.6.300.0060.01214.55
5.6.290.0000.01514.76
5.6.280.0100.03817.78
5.6.270.0000.01614.81
5.6.260.0100.00614.26
5.6.250.0060.00914.46
5.6.240.0060.01514.79
5.6.230.0100.01014.41
5.6.220.0110.01114.40
5.6.210.0100.04517.59
5.6.200.0060.04316.30
5.6.190.0120.04717.43
5.6.180.0100.04617.54
5.6.170.0230.04217.46
5.6.160.0050.04917.39
5.6.150.0080.02816.35
5.6.140.0070.04616.31
5.6.130.0070.04416.46
5.6.120.0070.02417.61
5.6.110.0060.02717.77
5.6.100.0060.03517.69
5.6.90.0100.04517.71
5.6.80.0050.02717.48
5.6.70.0120.00314.44
5.6.60.0030.01314.70
5.6.50.0100.01014.46
5.6.40.0000.01614.28
5.6.30.0000.01714.61
5.6.20.0060.00914.41
5.6.10.0000.01414.66
5.6.00.0060.01014.61
5.5.380.0100.00613.96
5.5.370.0030.01513.96
5.5.360.0140.00714.36
5.5.350.1890.02917.43
5.5.340.0130.04216.21
5.5.330.0100.04417.18
5.5.320.0180.03017.20
5.5.310.0260.04017.32
5.5.300.0100.03716.00
5.5.290.0050.02516.03
5.5.280.0030.02717.41
5.5.270.0090.03017.49
5.5.260.0110.03917.40
5.5.250.0100.04017.14
5.5.240.0070.02217.13
5.5.230.0000.01314.11
5.5.220.0070.00713.84
5.5.210.0060.00914.09
5.5.200.0070.00313.84
5.5.190.0030.01113.92
5.5.180.0070.00713.95
5.5.170.0070.00714.10
5.5.160.0000.01213.78
5.5.150.0050.00514.27
5.5.140.0030.00613.95
5.5.130.0070.01014.23
5.5.120.0100.00314.05
5.5.110.0120.00313.91
5.5.100.0090.00614.32
5.5.90.0100.00714.29
5.5.80.0000.01713.87
5.5.70.0070.00414.10
5.5.60.0030.01413.96
5.5.50.0060.00913.94
5.5.40.0040.00413.94
5.5.30.0000.01614.32
5.5.20.0030.01014.11
5.5.10.0060.00613.99
5.5.00.0100.00714.18
5.4.450.0210.04216.19
5.4.440.0260.03616.07
5.4.430.0280.03716.18
5.4.420.0190.03716.18
5.4.410.0180.02816.11
5.4.400.0170.03715.94
5.4.390.0200.03715.84
5.4.380.0170.03215.70
5.4.370.0240.03715.61
5.4.360.0200.03015.61
5.4.350.0200.03515.73
5.4.340.0210.02815.61
5.4.330.0040.00412.72
5.4.320.0060.02112.59
5.4.310.0040.02212.59
5.4.300.0050.02012.59
5.4.290.0080.02312.59
5.4.280.0050.02612.54
5.4.270.0040.02712.54
5.4.260.0050.03012.54
5.4.250.0070.02712.54
5.4.240.0080.02512.54
5.4.230.0040.02912.54
5.4.220.0060.02812.54
5.4.210.0100.02812.54
5.4.200.0040.02612.54
5.4.190.0090.02512.54
5.4.180.0060.02912.53
5.4.170.0090.02812.54
5.4.160.0060.02612.54
5.4.150.0070.02412.54
5.4.140.0060.03112.38
5.4.130.0070.02812.37
5.4.120.0080.03112.35
5.4.110.0070.02812.35
5.4.100.0070.02512.35
5.4.90.0060.03012.35
5.4.80.0160.02312.35
5.4.70.0140.03312.35
5.4.60.0070.02512.34
5.4.50.0080.02712.34
5.4.40.0070.03112.34
5.4.30.0070.02712.34
5.4.20.0040.02312.33
5.4.10.0040.02012.34
5.4.00.0060.02112.08
5.3.290.0090.01912.76
5.3.280.0060.02512.71
5.3.270.0040.02412.72
5.3.260.0020.02412.72
5.3.250.0020.02312.72
5.3.240.0080.02612.72
5.3.230.0050.03012.71
5.3.220.0050.02412.70
5.3.210.0070.02712.70
5.3.200.0030.03112.70
5.3.190.0060.02712.70
5.3.180.0040.03012.70
5.3.170.0080.02412.70
5.3.160.0040.02912.70
5.3.150.0040.03112.70
5.3.140.0080.02712.69
5.3.130.0040.03212.69
5.3.120.0070.02512.69
5.3.110.0070.02712.69
5.3.100.0050.02312.42
5.3.90.0070.01712.40
5.3.80.0080.02512.40
5.3.70.0060.02812.40
5.3.60.0050.02812.39
5.3.50.0070.02612.36
5.3.40.0070.02612.36
5.3.30.0040.02612.34
5.3.20.0070.02112.23
5.3.10.0090.01612.21
5.3.00.0070.03212.20
5.2.170.0060.0359.19
5.2.160.0090.0409.19
5.2.150.0070.0439.19
5.2.140.0080.0409.19
5.2.130.0060.0439.15
5.2.120.0070.0389.15
5.2.110.0090.0369.15
5.2.100.0070.0459.15
5.2.90.0070.0369.14
5.2.80.0110.0419.14
5.2.70.0090.0439.14
5.2.60.0090.0449.10
5.2.50.0120.0419.07
5.2.40.0070.0489.04
5.2.30.0070.0469.02
5.2.20.0060.0449.00
5.2.10.0090.0418.93
5.2.00.0090.0458.79
5.1.60.0070.0358.07
5.1.50.0060.0348.07
5.1.40.0060.0398.05
5.1.30.0050.0428.40
5.1.20.0060.0398.43
5.1.10.0050.0378.15
5.1.00.0060.0368.15
5.0.50.0030.0316.63
5.0.40.0030.0316.48
5.0.30.0030.0496.30
5.0.20.0040.0306.27
5.0.10.0060.0296.25
5.0.00.0050.0486.24
4.4.90.0060.0234.78
4.4.80.0030.0244.75
4.4.70.0100.0244.76
4.4.60.0080.0234.75
4.4.50.0060.0214.77
4.4.40.0110.0414.71
4.4.30.0040.0254.76
4.4.20.0030.0264.84
4.4.10.0040.0254.85
4.4.00.0040.0374.76
4.3.110.0050.0254.67
4.3.100.0040.0244.67
4.3.90.0050.0234.64
4.3.80.0050.0324.58
4.3.70.0030.0214.63
4.3.60.0050.0214.63
4.3.50.0060.0234.63
4.3.40.0060.0304.54
4.3.30.0030.0223.29
4.3.20.0040.0193.27
4.3.10.0060.0193.22
4.3.00.0030.0238.87

preferences:
54.36 ms | 401 KiB | 5 Q