3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'categoryparameterusedpricing_15'; $domain = strstr($email, '_'); echo $domain; // выводит @example.com $user = strstr($email, '_', true); // Начиная с PHP 5.3.0 echo $user; // выводит name

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.0160.00318.43
8.3.50.0090.01421.99
8.3.40.0070.00718.58
8.3.30.0080.00618.82
8.3.20.0040.00420.13
8.3.10.0090.00623.65
8.3.00.0060.00318.91
8.2.180.0180.00016.32
8.2.170.0000.01522.96
8.2.160.0090.00620.48
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0070.00317.80
8.2.110.0000.00920.51
8.2.100.0120.00017.91
8.2.90.0030.00617.75
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0050.00318.21
8.2.50.0050.00318.10
8.2.40.0080.00019.43
8.2.30.0080.00019.11
8.2.20.0080.00017.54
8.2.10.0050.00218.15
8.2.00.0030.00517.64
8.1.280.0060.00925.92
8.1.270.0030.00618.95
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0070.00320.88
8.1.220.0060.00317.77
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0000.00719.10
8.1.150.0000.00818.79
8.1.140.0020.00517.42
8.1.130.0030.00317.72
8.1.120.0040.00417.34
8.1.110.0040.00417.35
8.1.100.0000.00717.39
8.1.90.0000.00817.35
8.1.80.0070.00017.30
8.1.70.0000.00817.29
8.1.60.0030.00517.55
8.1.50.0040.00417.43
8.1.40.0110.00317.47
8.1.30.0050.00517.41
8.1.20.0040.00417.48
8.1.10.0000.00717.41
8.1.00.0000.00717.41
8.0.300.0060.00319.77
8.0.290.0080.00016.63
8.0.280.0090.00018.42
8.0.270.0070.00017.20
8.0.260.0030.00317.29
8.0.250.0000.00716.83
8.0.240.0060.00016.87
8.0.230.0030.00316.84
8.0.220.0000.00816.68
8.0.210.0050.00316.80
8.0.200.0000.00616.86
8.0.190.0000.00816.74
8.0.180.0040.00316.75
8.0.170.0060.00316.82
8.0.160.0030.00316.75
8.0.150.0040.00416.82
8.0.140.0030.00416.84
8.0.130.0000.00513.24
8.0.120.0040.00416.67
8.0.110.0000.00716.63
8.0.100.0050.00316.88
8.0.90.0070.00016.79
8.0.80.0070.01416.80
8.0.70.0030.00516.69
8.0.60.0000.00716.87
8.0.50.0050.00316.80
8.0.30.0170.00517.05
8.0.20.0130.00517.40
8.0.10.0040.00416.96
8.0.00.0090.01116.72
7.4.330.0020.00215.03
7.4.320.0070.00016.53
7.4.300.0030.00316.27
7.4.290.0030.00316.31
7.4.280.0040.00416.51
7.4.270.0030.00316.44
7.4.260.0070.00016.53
7.4.250.0000.00716.40
7.4.240.0040.00416.42
7.4.230.0030.00316.63
7.4.220.0120.00616.39
7.4.210.0070.01316.51
7.4.200.0070.00016.55
7.4.160.0110.00716.23
7.4.150.0050.01217.40
7.4.140.0080.01017.86
7.4.130.0040.01316.43
7.4.120.0050.01216.51
7.4.110.0110.01116.29
7.4.100.0110.01116.27
7.4.90.0100.00716.28
7.4.80.0100.00719.39
7.4.70.0150.00316.47
7.4.60.0040.01216.43
7.4.50.0050.00316.54
7.4.40.0110.00516.32
7.4.30.0100.00716.59
7.4.00.0040.01115.04
7.3.330.0030.00312.97
7.3.320.0000.00513.09
7.3.310.0000.00716.33
7.3.300.0030.00316.09
7.3.290.0080.00816.21
7.3.280.0120.00616.19
7.3.270.0130.00317.40
7.3.260.0170.00016.49
7.3.250.0110.01116.13
7.3.240.0150.00916.51
7.3.230.0070.01016.39
7.3.210.0120.00416.20
7.3.200.0080.00919.39
7.3.190.0070.01016.18
7.3.180.0090.00616.55
7.3.170.0100.01016.27
7.3.160.0070.01016.52
7.2.330.0070.01016.49
7.2.320.0120.01116.32
7.2.310.0160.00616.25
7.2.300.0080.00816.28
7.2.290.0180.00016.31
7.2.60.0000.01116.79
7.1.200.0060.00615.80
7.1.70.0030.01417.11
7.1.60.0040.01119.22
7.1.50.0030.01016.77
7.1.00.0030.07722.36
7.0.200.0030.00616.82
7.0.140.0070.06321.95
7.0.60.0070.06719.85
7.0.50.0070.08017.80
7.0.40.0030.04320.09
7.0.30.0430.06720.00
7.0.20.0270.07720.33
7.0.10.0130.08320.00
7.0.00.0200.05720.29
5.6.280.0100.06721.09
5.6.210.0030.08720.62
5.6.200.0000.08718.22
5.6.190.0070.08720.41
5.6.180.0270.04320.49
5.6.170.0270.07320.48
5.6.160.0070.04020.48
5.6.150.0000.04318.15
5.6.140.0130.07318.11
5.6.130.0070.06018.20
5.6.120.0070.07721.13
5.6.110.0100.07720.88
5.6.100.0030.08720.88
5.6.90.0100.04021.00
5.6.80.0170.07720.41
5.5.350.0330.07020.27
5.5.340.0030.08317.91
5.5.330.0130.04720.36
5.5.320.0230.08020.51
5.5.310.0200.05320.26
5.5.300.0030.08317.91
5.5.290.0030.08717.91
5.5.280.0030.09320.75
5.5.270.0030.04020.85
5.5.260.0030.04020.96
5.5.250.0030.04020.68
5.5.240.0070.08020.03
5.4.450.0470.07719.32
5.4.440.1130.06019.32
5.4.430.0770.05319.44
5.4.420.0670.08019.49
5.4.410.0900.04719.51
5.4.400.0730.07018.98
5.4.390.0130.06019.22
5.4.380.0270.05318.46
5.4.370.0370.05318.59
5.4.360.0230.05318.71
5.4.350.0130.06718.73
5.4.340.0270.05018.66
5.4.320.0270.05018.68
5.4.310.0200.05318.48
5.4.300.0230.05318.75
5.4.290.0200.05018.70
5.4.280.0300.04718.70
5.4.270.0200.05318.75
5.4.260.0200.05718.57
5.4.250.0200.05718.66
5.4.240.0200.05318.57
5.4.230.0230.05018.60
5.4.220.0170.06018.73
5.4.210.0200.05318.49
5.4.200.0270.04716.73
5.4.190.0230.05318.65
5.4.180.0200.05318.69
5.4.170.0200.05718.64
5.4.160.0330.04018.47
5.4.150.0170.06018.70
5.4.140.0270.04716.32
5.4.130.0300.03716.30
5.4.120.0300.04316.37
5.4.110.0170.05016.20
5.4.100.0200.05316.24
5.4.90.0330.06716.35
5.4.80.0230.05016.06
5.4.70.0230.05316.05
5.4.60.0130.05716.20
5.4.50.0230.05016.10
5.4.40.0200.05015.99
5.4.30.0130.05716.16
5.4.20.0270.04716.22
5.4.10.0330.04016.16
5.4.00.0300.04015.48
5.3.290.0200.05314.57
5.3.280.0300.04314.57
5.3.270.0270.04714.68
5.3.260.0270.07014.68
5.3.250.0170.05714.71
5.3.240.0300.04714.61
5.3.230.0230.05014.57
5.3.220.0170.05714.54
5.3.210.0130.06314.54
5.3.200.0330.05014.59
5.3.190.0400.04014.47
5.3.180.0270.04714.46
5.3.170.0270.04714.64
5.3.160.0270.04714.63
5.3.150.0300.04314.47
5.3.140.0200.04714.49
5.3.130.0230.05314.62
5.3.120.0270.07014.55
5.3.110.0300.07314.52
5.3.100.0230.07314.07
5.3.90.0270.04313.96
5.3.80.0270.04314.09
5.3.70.0230.05013.93
5.3.60.0130.05714.10
5.3.50.0170.05313.92
5.3.40.0200.05013.86
5.3.30.0300.04014.00
5.3.20.0230.04713.60
5.3.10.0270.04713.65
5.3.00.0270.04713.57
5.2.170.0270.03711.18
5.2.160.0200.04311.10
5.2.150.0100.05011.07
5.2.140.0200.04011.17
5.2.130.0130.04311.14
5.2.120.0300.03311.03
5.2.110.0170.04011.24
5.2.100.0300.03011.14
5.2.90.0170.04011.05
5.2.80.0170.04311.09
5.2.70.0100.04711.13
5.2.60.0170.04011.04
5.2.50.0170.04011.05
5.2.40.0130.04010.95
5.2.30.0130.04011.02
5.2.20.0130.04310.91
5.2.10.0170.03710.95
5.2.00.0130.04010.81
5.1.60.0170.0309.99
5.1.50.0000.04710.13
5.1.40.0070.04310.04
5.1.30.0030.04710.39
5.1.20.0200.03010.50
5.1.10.0070.04010.10
5.1.00.0200.03010.13
5.0.50.0100.0278.55
5.0.40.0030.0338.38
5.0.30.0200.0378.25
5.0.20.0070.0278.14
5.0.10.0130.0238.20
5.0.00.0170.0338.33
4.4.90.0070.0207.13
4.4.80.0030.0237.13
4.4.70.0070.0237.13
4.4.60.0070.0207.13
4.4.50.0030.0237.13
4.4.40.0030.0377.13
4.4.30.0130.0177.13
4.4.20.0070.0207.13
4.4.10.0100.0177.13
4.4.00.0070.0337.13
4.3.110.0100.0207.13
4.3.100.0070.0237.13
4.3.90.0170.0137.13
4.3.80.0070.0337.13
4.3.70.0100.0177.13
4.3.60.0100.0207.13
4.3.50.0100.0207.13
4.3.40.0070.0337.13
4.3.30.0030.0237.13
4.3.20.0000.0277.13
4.3.10.0070.0207.13
4.3.00.0170.0177.55

preferences:
69.57 ms | 401 KiB | 5 Q