3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'name@example.com'; $domain = strstr($email, '@'); echo $domain; // Affiche : @example.com $user = strstr($email, '@', true); // Depuis PHP 5.3.0 echo $user; // Affiche : 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.0090.00616.63
8.3.50.0140.00016.04
8.3.40.0090.00618.75
8.3.30.0070.00718.56
8.3.20.0040.00420.16
8.3.10.0080.00023.52
8.3.00.0080.00019.26
8.2.180.0140.00318.29
8.2.170.0070.00722.96
8.2.160.0110.00320.43
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00421.07
8.2.120.0070.00026.35
8.2.110.0070.00322.30
8.2.100.0080.00317.91
8.2.90.0040.00419.02
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0070.00020.42
8.2.30.0070.00019.28
8.2.20.0000.00718.04
8.2.10.0050.00218.06
8.2.00.0070.00018.07
8.1.280.0140.00325.92
8.1.270.0080.00023.92
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00422.81
8.1.230.0070.00317.71
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0040.00418.29
8.1.160.0000.00718.92
8.1.150.0040.00420.56
8.1.140.0080.00019.44
8.1.130.0030.00318.73
8.1.120.0030.00317.38
8.1.110.0000.00817.33
8.1.100.0030.00617.43
8.1.90.0040.00417.28
8.1.80.0050.00217.27
8.1.70.0000.00717.27
8.1.60.0040.00417.53
8.1.50.0040.00417.38
8.1.40.0040.00417.50
8.1.30.0000.00717.57
8.1.20.0070.00017.62
8.1.10.0030.00617.50
8.1.00.0040.00417.36
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0070.00018.42
8.0.270.0000.00717.12
8.0.260.0030.00316.80
8.0.250.0070.00016.81
8.0.240.0040.00416.83
8.0.230.0030.00316.75
8.0.220.0070.00016.68
8.0.210.0040.00416.74
8.0.200.0030.00316.84
8.0.190.0000.00816.87
8.0.180.0040.00416.87
8.0.170.0030.00516.73
8.0.160.0000.00716.78
8.0.150.0000.00916.81
8.0.140.0000.00816.70
8.0.130.0030.00313.23
8.0.120.0040.00416.67
8.0.110.0030.00316.82
8.0.100.0040.00416.82
8.0.90.0000.00716.81
8.0.80.0150.00016.73
8.0.70.0040.00416.77
8.0.60.0050.00316.69
8.0.50.0000.00716.74
8.0.30.0110.00716.97
8.0.20.0130.00617.40
8.0.10.0000.00717.00
8.0.00.0110.00616.70
7.4.330.0020.00215.55
7.4.320.0000.00616.41
7.4.300.0000.00716.47
7.4.290.0090.00016.49
7.4.280.0070.00316.41
7.4.270.0030.00316.33
7.4.260.0070.00016.41
7.4.250.0030.00616.39
7.4.240.0070.00016.45
7.4.230.0030.00316.62
7.4.220.0100.01016.55
7.4.210.0100.01016.62
7.4.200.0000.00716.54
7.4.160.0090.00716.33
7.4.150.0170.00417.40
7.4.140.0070.01317.86
7.4.130.0160.00416.57
7.4.120.0110.00716.32
7.4.110.0090.00916.48
7.4.100.0130.00316.25
7.4.90.0110.00616.55
7.4.80.0040.01719.39
7.4.70.0120.00316.42
7.4.60.0130.00316.44
7.4.50.0060.00616.52
7.4.40.0060.01016.36
7.4.30.0120.00416.25
7.4.00.0050.00814.84
7.3.330.0030.00313.11
7.3.320.0000.00512.94
7.3.310.0030.00316.06
7.3.300.0030.00316.21
7.3.290.0080.00516.16
7.3.280.0070.00916.18
7.3.270.0270.02317.40
7.3.260.0080.01216.43
7.3.250.0130.00616.18
7.3.240.0130.00316.49
7.3.230.0130.00716.18
7.3.210.0040.01616.39
7.3.200.0030.01316.30
7.3.190.0060.01016.19
7.3.180.0060.01316.34
7.3.170.0110.00416.23
7.3.160.0070.01016.32
7.3.120.0110.00615.83
7.3.110.0090.00315.62
7.3.100.0020.01415.73
7.3.90.0050.01115.86
7.3.80.0090.00515.81
7.3.70.0030.00915.66
7.3.60.0050.00715.87
7.3.50.0040.00515.74
7.3.40.0050.00615.71
7.3.30.0080.00315.76
7.3.20.0040.00716.81
7.3.10.0060.00616.62
7.3.00.0260.00716.12
7.2.330.0040.01516.39
7.2.320.0150.00616.51
7.2.310.0090.01216.60
7.2.300.0100.00716.36
7.2.290.0100.00716.61
7.2.250.0160.00315.20
7.2.240.0070.00716.02
7.2.230.0040.01215.91
7.2.220.0130.00415.85
7.2.210.0030.01016.06
7.2.200.0070.00715.89
7.2.190.0090.00615.99
7.2.180.0040.01115.98
7.2.170.0040.00815.90
7.2.160.0120.00616.90
7.2.150.0060.01216.90
7.2.140.0110.00317.03
7.2.130.0420.00515.97
7.2.120.0320.00515.87
7.2.110.0440.00615.87
7.2.100.0520.01315.92
7.2.90.0500.00315.89
7.2.80.0390.00815.90
7.2.70.0230.01015.97
7.2.60.0420.00716.20
7.2.50.0680.01016.01
7.2.40.0400.01115.96
7.2.30.0300.00816.06
7.2.20.0520.00916.04
7.2.10.0270.00615.95
7.2.00.0200.00717.05
7.1.330.0060.00816.26
7.1.320.0070.00716.39
7.1.310.0060.00616.33
7.1.300.0050.00916.33
7.1.290.0020.01216.32
7.1.280.0020.01016.35
7.1.270.0070.00616.37
7.1.260.0050.00816.20
7.1.250.0410.00815.37
7.1.240.0670.00713.89
7.1.230.0540.00713.93
7.1.220.0640.00613.73
7.1.210.1110.00713.88
7.1.200.0560.00314.83
7.1.190.0610.00313.94
7.1.180.0900.01213.95
7.1.170.0820.01213.72
7.1.160.0780.01013.94
7.1.150.0520.00613.83
7.1.140.1020.01014.05
7.1.130.0520.00714.06
7.1.120.0520.01513.93
7.1.110.0560.00813.90
7.1.100.0260.00816.11
7.1.90.0790.00913.90
7.1.80.0670.00713.91
7.1.70.0520.01115.53
7.1.60.0450.01024.45
7.1.50.0390.01224.18
7.1.40.1410.01624.14
7.1.30.0440.01324.24
7.1.20.0500.01123.17
7.1.10.0450.01014.39
7.1.00.0440.00714.28
7.0.330.0590.00313.54
7.0.320.0790.00913.27
7.0.310.0580.01713.51
7.0.300.0650.00713.71
7.0.290.0760.00413.52
7.0.280.0810.00413.46
7.0.270.1080.00913.62
7.0.260.0700.00613.56
7.0.250.0640.00613.28
7.0.240.0540.01013.71
7.0.230.0940.00013.70
7.0.220.0580.00713.62
7.0.210.0930.00313.75
7.0.200.0440.01014.41
7.0.190.0450.00714.25
7.0.180.0430.01514.81
7.0.170.0400.01114.00
7.0.160.0370.01215.00
7.0.150.0350.00914.17
7.0.140.0320.01214.89
7.0.130.0320.01114.93
7.0.120.0510.00814.32
7.0.110.0350.00914.97
7.0.100.0280.00914.88
7.0.90.0330.00814.78
7.0.80.0340.02114.86
7.0.70.0300.00714.96
7.0.60.0340.00314.96
7.0.50.0410.01114.97
7.0.40.0370.00815.06
7.0.30.0630.00715.11
7.0.20.0530.01414.87
7.0.10.0470.00615.04
7.0.00.0370.00914.94
5.6.380.0160.00314.07

preferences:
48.51 ms | 401 KiB | 5 Q