3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "lucas.beyeler@4linux.com.br"; $substring = substr(strpos($string, '@'), 0, $string); echo $substring;

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.00918.31
8.3.50.0140.00016.13
8.3.40.0070.00718.94
8.3.30.0040.01118.67
8.3.20.0070.00721.78
8.3.10.0040.00421.73
8.3.00.0040.00419.68
8.2.180.0140.00316.63
8.2.170.0040.01122.96
8.2.160.0040.01119.38
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00822.30
8.2.120.0000.00726.35
8.2.110.0100.00020.98
8.2.100.0080.00417.78
8.2.90.0040.00418.98
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0060.00317.91
8.2.50.0030.00718.10
8.2.40.0030.00520.45
8.2.30.0000.00819.23
8.2.20.0000.00717.86
8.2.10.0080.00018.10
8.2.00.0040.00417.92
8.1.280.0140.00025.92
8.1.270.0000.00723.86
8.1.260.0040.01526.35
8.1.250.0000.00728.09
8.1.240.0040.00421.12
8.1.230.0030.00719.04
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00717.22
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00718.78
8.1.150.0040.00418.82
8.1.140.0040.00419.38
8.1.130.0030.00318.85
8.1.120.0050.00217.40
8.1.110.0030.00517.25
8.1.100.0000.00817.25
8.1.90.0040.00417.45
8.1.80.0000.00817.37
8.1.70.0040.00417.28
8.1.60.0000.00817.54
8.1.50.0000.00817.49
8.1.40.0030.00517.49
8.1.30.0070.00017.53
8.1.20.0050.00317.47
8.1.10.0030.00617.59
8.1.00.0060.00317.58
8.0.300.0040.00420.03
8.0.290.0070.00016.75
8.0.280.0070.00018.38
8.0.270.0070.00017.09
8.0.260.0060.00018.87
8.0.250.0020.00516.96
8.0.240.0000.00816.93
8.0.230.0040.00416.93
8.0.220.0000.00716.85
8.0.210.0040.00416.81
8.0.200.0070.00017.00
8.0.190.0080.00016.96
8.0.180.0070.00016.79
8.0.170.0030.00516.79
8.0.160.0050.00316.97
8.0.150.0040.00416.83
8.0.140.0070.00016.83
8.0.130.0030.00313.35
8.0.120.0040.00416.80
8.0.110.0000.00716.75
8.0.100.0000.00816.98
8.0.90.0000.00716.95
8.0.80.0120.00616.93
8.0.70.0040.00416.76
8.0.60.0030.00616.87
8.0.50.0000.00816.75
8.0.30.0070.01217.10
8.0.20.0090.01217.40
8.0.10.0000.00816.88
8.0.00.0120.00616.46
7.4.330.0020.00215.55
7.4.320.0000.00616.51
7.4.300.0030.00316.45
7.4.290.0030.00316.44
7.4.280.0000.00716.32
7.4.270.0070.00016.54
7.4.260.0030.00316.41
7.4.250.0070.00016.39
7.4.240.0030.00316.34
7.4.230.0030.00316.36
7.4.220.0160.00316.55
7.4.210.0070.00716.49
7.4.200.0030.00316.27
7.4.160.0050.01116.42
7.4.150.0100.00717.40
7.4.140.0120.01017.86
7.4.130.0140.01116.57
7.4.120.0100.01116.50
7.4.110.0110.01116.64
7.4.100.0030.01316.41
7.4.90.0070.01016.42
7.4.80.0100.00619.39
7.4.70.0080.00816.51
7.4.60.0110.00816.37
7.4.50.0060.00616.19
7.4.40.0050.01116.38
7.4.30.0170.00716.38
7.4.00.0000.01414.97
7.3.330.0080.00013.16
7.3.320.0050.00013.13
7.3.310.0040.00216.31
7.3.300.0030.00316.25
7.3.290.0050.00216.25
7.3.280.0110.00816.27
7.3.270.0120.00817.40
7.3.260.0100.00716.23
7.3.250.0090.01316.45
7.3.240.0130.00716.31
7.3.230.0060.01216.48
7.3.210.0030.01616.35
7.3.200.0030.01716.54
7.3.190.0000.01616.40
7.3.180.0050.01016.31
7.3.170.0100.01016.31
7.3.160.0100.01016.20
7.2.330.0060.01216.26
7.2.320.0120.01216.72
7.2.310.0070.01016.29
7.2.300.0080.00816.72
7.2.290.0190.00716.36
7.2.60.0000.01316.90
7.2.00.0030.00919.38
7.1.200.0070.00415.80
7.1.70.0000.00716.94
7.1.60.0070.01017.29
7.1.50.0200.01334.62
7.1.40.0170.02034.21
7.1.30.0230.01734.32
7.1.20.0170.01734.62
7.1.10.0070.00716.66
7.1.00.0000.01316.45
7.0.200.0050.00516.79
7.0.190.0030.01016.70
7.0.180.0030.01316.14
7.0.170.0000.01716.14
7.0.160.0030.01316.03
7.0.150.0000.01716.06
7.0.140.0070.00716.17
7.0.130.0030.01016.36
7.0.120.0070.00716.34
7.0.110.0030.01716.16
7.0.100.0070.01316.32
7.0.90.0000.00716.33
7.0.80.0030.01016.15
7.0.70.0000.01316.16
7.0.60.0030.01315.78
7.0.50.0070.01016.29
7.0.40.0100.00716.38
7.0.30.0000.01316.55
7.0.20.0100.00716.29
7.0.10.0030.01316.25
7.0.00.0070.01016.43

preferences:
53.98 ms | 401 KiB | 5 Q