3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'Tester Test Street 11 (Nursing Home, Example), 1120 New York'; $pos = strrpos($input, ','); $prefix = substr($input, 0, $pos); $suffix = substr($input, $pos + 1); var_dump($prefix); var_dump($suffix);

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.4.140.0100.01017.44
8.4.130.0090.01017.57
8.4.120.0060.00320.58
8.4.110.0140.00624.25
8.4.100.0120.00818.82
8.4.90.0060.00620.46
8.4.80.0140.00618.82
8.4.70.0120.00918.96
8.4.60.0130.00919.04
8.4.50.0130.00417.78
8.4.40.0030.00717.42
8.4.30.0030.01718.48
8.4.20.0080.01218.85
8.4.10.0040.00419.63
8.3.270.0140.01116.44
8.3.260.0110.00916.43
8.3.250.0120.00619.00
8.3.240.0120.00616.43
8.3.230.0050.00416.44
8.3.220.0100.00718.84
8.3.210.0120.00616.56
8.3.200.0050.00416.49
8.3.190.0090.01016.56
8.3.180.0090.00616.48
8.3.170.0070.01416.39
8.3.160.0090.00918.26
8.3.150.0100.01017.13
8.3.140.0090.00316.92
8.3.130.0040.01118.43
8.3.120.0180.00818.30
8.3.110.0070.00716.32
8.3.100.0030.01318.31
8.3.90.0000.00826.77
8.3.80.0060.00316.38
8.3.70.0070.01118.43
8.3.60.0140.00418.31
8.3.50.0150.00616.48
8.3.40.0130.01018.57
8.3.30.0090.00618.77
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0130.00816.75
8.2.280.0110.00618.12
8.2.270.0110.00716.38
8.2.260.0080.00816.65
8.2.250.0080.00016.92
8.2.240.0060.00317.15
8.2.230.0080.00020.94
8.2.220.0000.00924.06
8.2.210.0040.00426.77
8.2.200.0090.00016.38
8.2.190.0040.01116.58
8.2.180.0060.00925.92
8.2.170.0140.00718.61
8.2.160.0090.00622.96
8.2.150.0060.00325.66
8.2.140.0040.01124.66
8.2.130.0000.00726.16
8.2.120.0060.00319.70
8.2.110.0030.00619.27
8.2.100.0070.00317.66
8.2.90.0030.00617.63
8.2.80.0040.00418.54
8.2.70.0050.00317.49
8.2.60.0030.00517.50
8.2.50.0000.01018.10
8.2.40.0030.00621.10
8.2.30.0000.00719.23
8.2.20.0000.01017.98
8.2.10.0030.00519.16
8.2.00.0000.00719.11
8.1.330.0150.00416.18
8.1.320.0090.01016.25
8.1.310.0040.00419.97
8.1.300.0150.00319.86
8.1.290.0000.00930.84
8.1.280.0110.00325.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00422.08
8.1.230.0040.00720.89
8.1.220.0080.00017.74
8.1.210.0020.00518.77
8.1.200.0000.00817.35
8.1.190.0000.00917.22
8.1.180.0060.00318.10
8.1.170.0050.00318.43
8.1.160.0040.00418.78
8.1.150.0000.00918.80
8.1.140.0040.00418.77
8.1.130.0000.00717.25
8.1.120.0000.00717.28
8.1.110.0000.00817.35
8.1.100.0000.00717.38
8.1.90.0030.00617.27
8.1.80.0040.00417.46
8.1.70.0050.00217.42
8.1.60.0050.00317.40
8.1.50.0000.00817.50
8.1.40.0060.00317.31
8.1.30.0030.00617.49
8.1.20.0000.00817.51
8.1.10.0080.00017.43
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.38
8.0.270.0090.00016.88
8.0.260.0080.00016.75
8.0.250.0040.00416.88
8.0.240.0000.00616.78
8.0.230.0030.00316.87
8.0.220.0050.00216.70
8.0.210.0000.00916.74
8.0.200.0040.00416.72
8.0.190.0050.00316.88
8.0.180.0000.00716.89
8.0.170.0030.00916.83
8.0.160.0050.00316.78
8.0.150.0080.00016.71
8.0.140.0050.00316.82
8.0.130.0030.00313.24
8.0.120.0000.00816.75
8.0.110.0000.00716.87
8.0.100.0040.00416.84
8.0.90.0000.00716.82
8.0.80.0080.00816.80
8.0.70.0070.00016.77
8.0.60.0000.00716.68
8.0.50.0000.00716.78
8.0.30.0070.00716.86
8.0.20.0040.01116.89
8.0.10.0070.01316.88
8.0.00.0090.00616.96
7.4.330.0000.00515.55
7.4.320.0030.00316.42
7.4.300.0030.00316.54
7.4.290.0070.00016.45
7.4.280.0080.00016.57
7.4.270.0000.00616.58
7.4.260.0000.00513.24
7.4.250.0050.00316.35
7.4.240.0000.00816.40
7.4.230.0050.00216.42
7.4.220.0000.00716.43
7.4.210.0120.00916.46
7.4.200.0030.00416.62
7.4.160.0110.00416.49
7.4.150.0030.01016.36
7.4.140.0110.00716.48
7.4.130.0090.00916.27
7.4.120.0000.01416.43
7.4.110.0110.00616.37
7.4.100.0070.01416.53
7.4.90.0040.01116.34
7.4.80.0070.01416.42
7.4.70.0120.00916.29
7.4.60.0040.01516.43
7.4.50.0130.00716.36
7.4.40.0000.01416.24
7.4.30.0100.00316.36
7.4.20.0030.01716.32
7.4.10.0130.00016.32
7.4.00.0000.01816.43
7.3.330.0000.00916.19
7.3.320.0050.00012.94
7.3.310.0020.00516.19
7.3.300.0060.00016.05
7.3.290.0070.00016.19
7.3.270.0070.00716.24
7.3.260.0000.01316.16
7.3.250.0060.01216.16
7.3.240.0100.00616.21
7.3.230.0150.00316.21
7.3.220.0120.00616.19
7.3.210.0100.00416.21
7.3.200.0070.01316.16
7.3.190.0030.01616.11
7.3.180.0130.00716.18
7.3.170.0040.00916.08
7.3.160.0070.00716.13
7.3.150.0160.00316.14
7.3.140.0030.01716.16
7.3.130.0140.00616.13
7.3.120.0060.01316.13
7.3.110.0200.00016.01
7.3.100.0070.01316.09
7.3.90.0140.00416.34
7.3.80.0080.01116.13
7.3.70.0110.00716.26
7.3.60.0070.01116.25
7.3.50.0090.00916.28
7.3.40.0140.00316.19
7.3.30.0100.00716.32
7.3.20.0080.00618.08
7.3.10.0050.00818.10
7.3.00.0030.01018.08

preferences:
30.7 ms | 403 KiB | 5 Q