3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'Apple\'s OS and the "Microsoft OS", ----- any text with quotes & symbols ---- '; $str2 = 'Sony\'s Laptop and the "Toshiba\'s"'; function implodeStrings(...$array) { $output = []; foreach($array as $str) { $output[] = $str; } return $output; } $array = implodeStrings($str1, $str2); var_dump($array);

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.70.0040.01116.50
8.3.60.0110.00318.35
8.3.50.0060.01218.10
8.3.40.0140.00318.52
8.3.30.0090.00618.84
8.3.20.0180.00020.04
8.3.10.0000.00820.80
8.3.00.0040.00420.34
8.2.180.0150.00316.75
8.2.170.0080.00822.96
8.2.160.0170.00319.46
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.53
8.2.110.0030.00721.00
8.2.100.0030.00917.97
8.2.90.0040.00418.16
8.2.80.0000.00917.97
8.2.70.0050.00317.75
8.2.60.0000.00817.63
8.2.50.0000.00817.63
8.2.40.0040.00421.06
8.2.30.0090.00019.37
8.2.20.0050.00218.00
8.2.10.0040.00418.11
8.2.00.0000.00718.00
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00320.73
8.1.230.0070.00420.84
8.1.220.0000.00917.88
8.1.210.0030.00718.77
8.1.200.0090.00017.35
8.1.190.0050.00517.25
8.1.180.0060.00318.10
8.1.170.0030.00618.71
8.1.160.0040.00418.89
8.1.150.0030.00320.27
8.1.140.0000.00717.37
8.1.130.0000.00718.82
8.1.120.0050.00317.38
8.1.110.0040.00417.37
8.1.100.0040.00417.50
8.1.90.0080.00017.47
8.1.80.0040.00417.52
8.1.70.0030.00717.45
8.1.60.0030.00517.54
8.1.50.0040.00417.42
8.1.40.0040.00417.46
8.1.30.0050.00317.59
8.1.20.0050.00317.68
8.1.10.0000.00817.49
8.1.00.0000.00717.45
8.0.300.0080.00019.91
8.0.290.0040.00416.75
8.0.280.0000.00818.37
8.0.270.0000.00717.20
8.0.260.0070.00418.79
8.0.250.0000.00617.02
8.0.240.0050.00316.95
8.0.230.0030.00316.96
8.0.220.0000.00716.73
8.0.210.0040.00416.90
8.0.200.0030.00316.98
8.0.190.0000.00816.95
8.0.180.0080.00016.93
8.0.170.0070.00016.98
8.0.160.0040.00416.81
8.0.150.0040.00416.79
8.0.140.0000.00716.74
8.0.130.0030.00313.29
8.0.120.0040.00416.88
8.0.110.0040.00416.79
8.0.100.0040.00416.77
8.0.90.0040.00416.96
8.0.80.0040.01116.95
8.0.70.0000.00716.78
8.0.60.0060.00316.96
8.0.50.0000.00816.72
8.0.30.0120.00717.05
8.0.20.0130.00817.40
8.0.10.0040.00416.93
8.0.00.0120.00616.66
7.4.330.0060.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.45
7.4.290.0030.00316.59
7.4.280.0000.00816.50
7.4.270.0040.00416.53
7.4.260.0040.00516.61
7.4.250.0000.00716.51
7.4.240.0040.00316.45
7.4.230.0000.00716.35
7.4.220.0090.01016.46
7.4.210.0070.00816.47
7.4.200.0040.00416.41
7.4.160.0070.01116.52
7.4.150.0140.00317.40
7.4.140.0120.00817.86
7.4.130.0150.00416.55
7.4.120.0080.01216.41
7.4.110.0090.01316.50
7.4.100.0060.01216.57
7.4.90.0090.00916.56
7.4.80.0090.00919.39
7.4.70.0100.00716.52
7.4.60.0120.00316.41
7.4.50.0070.01016.58
7.4.40.0110.00616.72
7.4.30.0110.00716.30
7.4.00.0070.01014.68
7.3.330.0000.00513.13
7.3.320.0050.00013.08
7.3.310.0000.00716.37
7.3.300.0060.00016.31
7.3.290.0080.00816.31
7.3.280.0070.00916.28
7.3.270.0100.00717.40
7.3.260.0150.00316.59
7.3.250.0130.00616.43
7.3.240.0130.00516.52
7.3.230.0130.00416.39
7.3.210.0070.01116.64
7.3.200.0100.00716.22
7.3.190.0180.01816.23
7.3.180.0090.00916.57
7.3.170.0110.00916.70
7.3.160.0030.01716.33
7.2.330.0060.01116.69
7.2.320.0320.01616.54
7.2.310.0090.00916.64
7.2.300.0080.00816.68
7.2.290.0080.01116.62
7.2.60.0030.00616.84
7.1.200.0030.00715.70
7.1.80.0070.00817.99
7.1.70.0020.01017.16
7.1.60.0140.01235.01
7.1.50.0140.01734.68
7.1.40.0140.01634.35
7.1.30.0190.01034.45
7.1.20.0120.01634.52
7.1.10.0070.00516.69
7.1.00.0030.01016.65
7.0.200.0070.00616.60
7.0.190.0050.00716.81
7.0.180.0040.00916.15
7.0.170.0070.00616.29
7.0.160.0020.01116.26
7.0.150.0050.00916.41
7.0.140.0090.00816.30
7.0.130.0050.00916.63
7.0.120.0080.00616.61
7.0.110.0060.00616.56
7.0.100.0000.01416.21
7.0.90.0030.01016.34
7.0.80.0040.00916.44
7.0.70.0020.01016.27
7.0.60.0070.00916.08
7.0.50.0030.00916.36
7.0.40.0060.00616.42
7.0.30.0030.00916.55
7.0.20.0070.00716.43
7.0.10.0040.00916.43
7.0.00.0020.01116.44

preferences:
66.85 ms | 401 KiB | 5 Q