3v4l.org

run code in 300+ PHP versions simultaneously
<?php (!preg_match("/([\w\-]+\@[\w\-]+\[\w\-]+)/", "maragathamani.b@gmail.com", $matches)); echo $matches[0]; // 1234

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.0070.01018.68
8.3.50.0130.00322.05
8.3.40.0090.00618.92
8.3.30.0100.01020.34
8.3.20.0040.00420.30
8.3.10.0050.00321.95
8.3.00.0000.00822.58
8.2.180.0170.00318.88
8.2.170.0070.00722.96
8.2.160.0100.00322.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00426.16
8.2.120.0050.00321.00
8.2.110.0030.00722.08
8.2.100.0060.00617.84
8.2.90.0060.00617.88
8.2.80.0070.00417.97
8.2.70.0000.00817.68
8.2.60.0030.00618.04
8.2.50.0050.00318.10
8.2.40.0040.00420.60
8.2.30.0000.00818.09
8.2.20.0040.00417.68
8.2.10.0050.00317.88
8.2.00.0000.00817.77
8.1.280.0060.01025.92
8.1.270.0000.00824.66
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0060.00323.87
8.1.230.0060.00621.04
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.13
8.1.190.0030.00617.35
8.1.180.0030.00618.10
8.1.170.0040.00418.83
8.1.160.0030.00322.16
8.1.150.0000.00718.61
8.1.140.0070.00017.55
8.1.130.0040.00417.66
8.1.120.0070.00017.54
8.1.110.0000.00717.57
8.1.100.0040.00417.46
8.1.90.0000.00717.50
8.1.80.0050.00317.55
8.1.70.0000.00717.43
8.1.60.0030.00617.66
8.1.50.0000.00817.64
8.1.40.0000.00717.51
8.1.30.0040.00417.73
8.1.20.0030.00517.59
8.1.10.0000.00817.61
8.1.00.0040.00417.57
8.0.300.0050.00220.02
8.0.290.0060.00316.63
8.0.280.0040.00418.39
8.0.270.0070.00017.13
8.0.260.0030.00316.95
8.0.250.0030.00317.11
8.0.240.0070.00017.12
8.0.230.0000.00717.11
8.0.220.0050.00217.13
8.0.210.0000.00716.90
8.0.200.0030.00317.03
8.0.190.0000.00817.00
8.0.180.0030.00517.12
8.0.170.0080.00016.98
8.0.160.0040.00417.01
8.0.150.0050.00317.00
8.0.140.0040.00416.90
8.0.130.0000.00613.43
8.0.120.0000.00817.02
8.0.110.0000.00816.96
8.0.100.0040.00416.86
8.0.90.0000.00816.91
8.0.80.0070.00717.00
8.0.70.0000.00717.02
8.0.60.0000.00817.06
8.0.50.0050.00217.10
8.0.30.0100.00917.35
8.0.20.0090.01217.40
8.0.10.0040.00416.93
8.0.00.0060.01216.83
7.4.330.0050.00015.00
7.4.320.0030.00316.79
7.4.300.0000.00616.64
7.4.290.0070.00016.68
7.4.280.0040.00416.65
7.4.270.0070.00016.65
7.4.260.0030.00516.62
7.4.250.0060.00316.71
7.4.240.0030.00416.62
7.4.230.0030.00316.75
7.4.220.0060.01316.72
7.4.210.0060.00916.69
7.4.200.0000.00716.57
7.4.190.0000.00716.85
7.4.160.0080.00816.73
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0100.00716.68
7.4.120.0130.00516.63
7.4.110.0160.00716.57
7.4.100.0100.00716.70
7.4.90.0140.00416.80
7.4.80.0100.00719.39
7.4.70.0030.01416.62
7.4.60.0070.00916.82
7.4.50.0030.00616.75
7.4.40.0090.00622.77
7.4.30.0000.01716.44
7.4.00.0060.01015.07
7.3.330.0050.00013.30
7.3.320.0030.00313.12
7.3.310.0040.00416.39
7.3.300.0070.00016.33
7.3.290.0070.00716.44
7.3.280.0090.00716.42
7.3.270.0090.00917.40
7.3.260.0030.01316.62
7.3.250.0120.00616.63
7.3.240.0120.00616.42
7.3.230.0090.01616.61
7.3.210.0160.00416.47
7.3.200.0060.01219.39
7.3.190.0190.00316.52
7.3.180.0090.00616.77
7.3.170.0060.01016.68
7.3.160.0070.01016.72
7.3.120.0060.00814.97
7.3.110.0030.01014.96
7.3.100.0030.01015.11
7.3.90.0060.00914.93
7.3.80.0040.01115.08
7.3.70.0030.00914.66
7.3.60.0110.00315.12
7.3.50.0040.00814.98
7.3.40.0110.00414.95
7.3.30.0000.01114.99
7.3.20.0060.00616.70
7.3.10.0040.01116.70
7.3.00.0030.01016.78
7.2.330.0150.00316.65
7.2.320.0120.00916.60
7.2.310.0100.00716.80
7.2.300.0100.01016.54
7.2.290.0130.00316.55
7.2.250.0060.01215.04
7.2.240.0070.01315.13
7.2.230.0060.01214.97
7.2.220.0040.01115.25
7.2.210.0110.00715.16
7.2.200.0040.01415.35
7.2.190.0070.00715.04
7.2.180.0110.00415.32
7.2.170.0060.00315.16
7.2.00.0040.01119.57
7.1.330.0120.00316.02
7.1.320.0030.01315.89
7.1.310.0000.01316.02
7.1.300.0060.00615.98
7.1.290.0040.00716.11
7.1.280.0110.00316.04
7.1.270.0000.00815.62
7.1.260.0070.01015.91
7.1.200.0030.01216.07
7.1.100.0000.01218.05
7.1.70.0060.00317.09
7.1.60.0120.01219.43
7.1.50.0030.00817.01
7.1.00.0000.03722.45
7.0.200.0170.00014.62
7.0.140.0030.07721.98
7.0.60.0070.04319.91
7.0.50.0070.04017.81
7.0.40.0170.07720.11
7.0.30.0230.05320.11
7.0.20.0270.04020.02
7.0.10.0300.07720.25
7.0.00.0130.04320.14
5.6.280.0000.07721.01
5.6.210.0130.07720.62
5.6.200.0070.04718.19
5.6.190.0170.08020.38
5.6.180.0170.04720.41
5.6.170.0070.05020.33
5.6.160.0030.08320.38
5.6.150.0070.05718.15
5.6.140.0070.03718.11
5.6.130.0230.06718.04
5.6.120.0130.08021.11
5.6.110.0100.08021.13
5.6.100.0130.07721.01
5.6.90.0030.04020.95
5.6.80.0030.04020.38
5.6.70.0400.06720.39
5.5.350.0000.08320.43
5.5.340.0070.05718.01
5.5.330.0170.08020.29
5.5.320.0300.07320.18
5.5.310.0230.06720.17
5.5.300.0130.07317.91
5.5.290.0070.08017.88
5.5.280.0030.07720.87
5.5.270.0100.04320.95
5.5.260.0130.05720.71
5.5.250.0130.07720.66
5.5.240.0300.06320.14
5.4.450.0300.06319.52
5.4.440.1100.05719.52
5.4.430.1000.05719.63
5.4.420.1130.05319.48
5.4.410.1000.05718.97
5.4.400.1630.07318.62
5.4.390.1130.04718.53
5.4.380.0170.06018.70
5.4.370.0200.04718.56
5.4.360.0130.05018.72
5.4.350.0070.03511.97
5.4.340.0070.03411.97
5.4.320.0030.05112.45
5.4.310.0070.04912.45
5.4.300.0060.03812.45
5.4.290.0060.04112.45
5.4.280.0100.04812.34
5.4.270.0090.03712.35
5.4.260.0050.04112.35
5.4.250.0020.04212.35
5.4.240.0070.05318.74
5.4.230.0230.04718.69
5.4.220.0100.05018.83
5.4.210.0170.04319.04
5.4.200.0070.05718.74
5.4.190.0130.06718.63
5.4.180.0070.05318.65
5.4.170.0070.07018.74
5.4.160.0030.07318.99
5.4.150.0130.07018.83
5.4.140.0030.07316.26
5.4.130.0070.04716.22
5.4.120.0130.05316.45
5.4.110.0100.04716.20
5.4.100.0230.03716.51
5.4.90.0070.05016.36
5.4.80.0100.06016.21
5.4.70.0070.05016.18
5.4.60.0130.04716.40
5.4.50.0030.05016.36
5.4.40.0030.05316.50
5.4.30.0130.04316.30
5.4.20.0070.07316.36
5.4.10.0000.05716.23
5.4.00.0030.05015.64
5.3.290.0090.05612.80
5.3.280.0030.07014.58
5.3.270.0170.04314.62
5.3.260.0100.05014.66
5.3.250.0070.05714.30
5.3.240.0170.07014.61
5.3.230.0070.07014.51
5.3.220.0070.05014.57
5.3.210.0130.04714.57
5.3.200.0100.05014.45
5.3.190.0030.06014.40
5.3.180.0070.05014.71
5.3.170.0100.04714.47
5.3.160.0070.05714.65
5.3.150.0000.05714.43
5.3.140.0070.05014.57
5.3.130.0070.05714.43
5.3.120.0170.05714.24
5.3.110.0030.06714.41
5.3.100.0030.07313.95
5.3.90.0000.05714.11
5.3.80.0130.04314.11
5.3.70.0100.04713.71
5.3.60.0070.05013.77
5.3.50.0100.06313.81
5.3.40.0070.05013.82
5.3.30.0070.07013.91
5.3.20.0030.05013.78
5.3.10.0130.04013.48
5.3.00.0130.06013.41
5.2.170.0070.06011.16
5.2.160.0030.06311.16
5.2.150.0130.05311.14
5.2.140.0030.06311.02
5.2.130.0000.04311.12
5.2.120.0030.04010.98
5.2.110.0070.03711.11
5.2.100.0000.06711.13
5.2.90.0200.03011.11
5.2.80.0100.04311.18
5.2.70.0030.04311.11
5.2.60.0070.04010.88
5.2.50.0000.05310.85
5.2.40.0030.04010.93
5.2.30.0130.03310.89
5.2.20.0000.06010.95
5.2.10.0030.04310.93
5.2.00.0100.05010.60
5.1.60.0000.03710.18
5.1.50.0000.03710.05
5.1.40.0070.0309.90
5.1.30.0030.03710.23
5.1.20.0000.05710.43
5.1.10.0030.05010.13
5.1.00.0070.0309.92
5.0.50.0070.0338.73
5.0.40.0100.0238.32
5.0.30.0070.0478.27
5.0.20.0000.0408.10
5.0.10.0000.0408.31
5.0.00.0030.0408.12
4.4.90.0070.0175.81
4.4.80.0000.0235.69
4.4.70.0070.0205.75
4.4.60.0000.0275.75
4.4.50.0030.0235.80
4.4.40.0000.0335.76
4.4.30.0070.0235.78
4.4.20.0030.0205.82
4.4.10.0000.0235.91
4.4.00.0000.0375.81
4.3.110.0070.0235.70
4.3.100.0000.0235.69
4.3.90.0030.0275.68
4.3.80.0030.0335.68
4.3.70.0100.0135.70
4.3.60.0000.0205.68
4.3.50.0000.0235.69
4.3.40.0030.0305.66
4.3.30.0030.0205.28
4.3.20.0000.0235.28
4.3.10.0030.0205.28
4.3.00.0030.0206.71

preferences:
41.33 ms | 401 KiB | 5 Q