3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = "House No. 1234-ABC, Second Floor, XYZ Building, ABC Mall Road, Street Number 1234, ABC Area"; $address_length = strlen($address); if ($address_length > 80) { $parts = explode(',', $address); list($address1, $address2) = array_map(function($x) { return trim(implode(',', $x)); }, array_chunk($parts, 3)); echo $address1; echo PHP_EOL; echo $address2; }

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.130.0030.00518.47
8.3.120.0030.00620.56
8.3.110.0000.00920.94
8.3.100.0090.00624.06
8.3.90.0100.00026.77
8.3.80.0030.00718.43
8.3.70.0090.00616.50
8.3.60.0070.01018.31
8.3.50.0070.00517.23
8.3.40.0170.00018.90
8.3.30.0040.01118.71
8.3.20.0030.00620.77
8.3.10.0000.00921.85
8.3.00.0080.00020.96
8.2.250.0090.00016.74
8.2.240.0040.00417.37
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0140.00426.77
8.2.200.0000.00918.41
8.2.190.0080.00816.58
8.2.180.0090.00918.54
8.2.170.0070.00722.96
8.2.160.0070.00720.22
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00619.79
8.2.110.0060.00320.94
8.2.100.0120.00017.84
8.2.90.0050.00317.75
8.2.80.0080.00318.67
8.2.70.0060.00317.50
8.2.60.0000.00817.63
8.2.50.0040.00419.22
8.2.40.0040.00419.32
8.2.30.0000.00819.32
8.2.20.0070.00018.07
8.2.10.0040.00419.37
8.2.00.0040.00418.31
8.1.300.0030.00518.50
8.1.290.0000.00930.84
8.1.280.0120.00325.92
8.1.270.0040.00420.38
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00319.09
8.1.230.0080.00320.84
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00517.36
8.1.190.0030.00717.23
8.1.180.0040.00718.10
8.1.170.0000.00818.59
8.1.160.0040.00418.84
8.1.150.0000.00718.97
8.1.140.0070.00019.07
8.1.130.0050.00418.85
8.1.120.0020.00617.41
8.1.110.0090.00317.41
8.1.100.0080.00417.41
8.1.90.0070.00417.40
8.1.80.0040.00817.41
8.1.70.0050.00617.39
8.1.60.0070.00617.51
8.1.50.0070.00517.47
8.1.40.0070.00717.50
8.1.30.0100.00517.56
8.1.20.0090.00517.62
8.1.10.0100.00417.54
8.1.00.0080.00517.47
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0000.00717.29
8.0.260.0020.00617.73
8.0.250.0040.00516.95
8.0.240.0110.00116.90
8.0.230.0070.00516.83
8.0.220.0060.00616.79
8.0.210.0050.00716.77
8.0.200.0030.00816.89
8.0.190.0070.00416.90
8.0.180.0060.00516.88
8.0.170.0070.00516.89
8.0.160.0070.00616.86
8.0.150.0080.00316.84
8.0.140.0070.00516.82
8.0.130.0080.00415.90
8.0.120.0070.00516.83
8.0.110.0060.00516.84
8.0.100.0080.00416.88
8.0.90.0070.00516.88
8.0.80.0090.00516.86
8.0.70.0050.00616.86
8.0.60.0050.00616.88
8.0.50.0070.00416.82
8.0.30.0130.00216.99
8.0.20.0080.00616.98
8.0.10.0060.00516.89
8.0.00.0110.00716.83
7.4.330.0070.00216.87
7.4.320.0080.00516.61
7.4.300.0130.00116.60
7.4.290.0110.00216.66
7.4.280.0070.00716.63
7.4.270.0070.00516.44
7.4.260.0060.00616.38
7.4.250.0060.00616.41
7.4.240.0050.00616.41
7.4.230.0060.00516.46
7.4.220.0040.00716.55
7.4.210.0080.00716.49
7.4.200.0070.00316.52
7.4.190.0090.00216.38
7.4.180.0110.00116.55
7.4.160.0090.00516.51
7.4.150.0090.00216.32
7.4.140.0090.00216.33
7.4.130.0110.00216.30
7.4.120.0080.00716.38
7.4.110.0100.00416.50
7.4.100.0090.00516.46
7.4.90.0080.00516.50
7.4.80.0060.00717.19
7.4.70.0070.00616.53
7.4.60.0080.00516.44
7.4.50.0060.00616.42
7.4.40.0070.00616.31
7.4.30.0080.00316.37
7.4.20.0040.00716.52
7.4.10.0080.00416.39
7.4.00.0090.00316.19
7.3.330.0080.00515.64
7.3.320.0100.00215.67
7.3.310.0050.00816.48
7.3.300.0060.00616.48
7.3.290.0070.00516.44
7.3.280.0090.00616.41
7.3.270.0080.00616.42
7.3.260.0100.00816.53
7.3.250.0090.00616.50
7.3.240.0090.00716.44
7.3.230.0150.00316.47
7.3.220.0120.00216.48
7.3.210.0100.00516.51
7.3.200.0090.00616.46
7.3.190.0110.00416.45
7.3.180.0080.00816.49
7.3.170.0120.00316.40
7.3.160.0100.00516.50
7.3.150.0100.00416.40
7.3.140.0100.00416.48
7.3.130.0110.00316.44
7.3.120.0070.00816.62
7.3.110.0050.01016.61
7.3.100.0100.00616.65
7.3.90.0090.00516.72
7.3.80.0060.00916.69
7.3.70.0080.00616.67
7.3.60.0100.00516.75
7.3.50.0130.00216.72
7.3.40.0080.00616.30
7.3.30.0060.00816.32
7.3.20.0100.00516.73
7.3.10.0090.00716.72
7.3.00.0080.00816.73
7.2.340.0090.00616.57
7.2.330.0120.00416.50
7.2.320.0090.00716.57
7.2.310.0120.00316.58
7.2.300.0080.00716.56
7.2.290.0070.00916.55
7.2.280.0090.00516.59
7.2.270.0110.00316.56
7.2.260.0110.00416.53
7.2.250.0100.00516.59
7.2.240.0100.00516.69
7.2.230.0070.00916.66
7.2.220.0070.00916.72
7.2.210.0090.00416.70
7.2.200.0090.00716.79
7.2.190.0090.00416.76
7.2.180.0110.00216.76
7.2.170.0100.00716.43
7.2.160.0090.00516.43
7.2.150.0090.00616.79
7.2.140.0100.00616.83
7.2.130.0090.00616.85
7.2.120.0080.00716.81
7.2.110.0070.00816.89
7.2.100.0080.00816.83
7.2.90.0100.00516.87
7.2.80.0090.00616.82
7.2.70.0120.00916.90
7.2.60.0090.01016.79
7.2.50.0110.00416.81
7.2.40.0090.00916.87
7.2.30.0130.00216.82
7.2.20.0110.00416.86
7.2.10.0150.00616.88
7.2.00.0110.00316.85
7.1.330.0080.00716.28
7.1.320.0100.00416.28
7.1.310.0080.00516.28
7.1.300.0070.00816.32
7.1.290.0080.00716.24
7.1.280.0080.00716.12
7.1.270.0090.00516.17
7.1.260.0080.00516.22
7.1.250.0090.00716.09
7.1.240.0100.00515.89
7.1.230.0120.00216.04
7.1.220.0110.00416.00
7.1.210.0120.00316.01
7.1.200.0100.00616.03
7.1.190.0130.00715.95
7.1.180.0160.00416.00
7.1.170.0130.00215.85
7.1.160.0120.00515.88
7.1.150.0110.00415.95
7.1.140.0080.00715.94
7.1.130.0120.00515.91
7.1.120.0100.00515.89
7.1.110.0100.00416.03
7.1.100.0100.00415.93
7.1.90.0110.00415.92
7.1.80.0100.00415.92
7.1.70.0110.00415.81
7.1.60.0090.00615.99
7.1.50.0120.00315.98
7.1.40.0130.00215.91
7.1.30.0120.00216.01
7.1.20.0150.00015.96
7.1.10.0090.00615.93
7.1.00.0110.00215.99

preferences:
30.21 ms | 403 KiB | 5 Q