3v4l.org

run code in 300+ PHP versions simultaneously
<? php $ar1=array(1,2,3,4,5); $ar2=array(11,22,33,44,55); $arr3=array(array_merge($arr1,$arr2); print_r($arr3); shuffle($arr3); echo"array is shuffed"; foreach($arr3 as $a) { echo"<br>",$a; } $str=implode(" and '),$ar3); echo"<br>after implode of array 4ar3 is <br> $str"; $str="india is our country"; echo"<br> explode example for 4str1 is </br>"; $country=explode("",$str1); print_r($country); $song="twinkle twinkle"; $songArray=explode(',',$song); echo"<br>after explode 3rd element is",$songArray[3]; ?>

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.0170.00318.43
8.3.60.0030.01016.63
8.3.50.0120.00722.10
8.3.40.0140.00018.54
8.3.30.0110.00318.88
8.3.20.0000.00720.21
8.3.10.0060.00323.64
8.3.00.0000.00920.72
8.2.180.0090.00616.32
8.2.170.0120.00322.96
8.2.160.0100.00620.48
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00420.91
8.2.110.0000.01020.53
8.2.100.0080.00317.59
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0060.00317.37
8.2.60.0030.00617.91
8.2.50.0030.00618.07
8.2.40.0030.00519.64
8.2.30.0000.00718.02
8.2.20.0040.00417.41
8.2.10.0080.00017.93
8.2.00.0090.00017.51
8.1.280.0090.00625.92
8.1.270.0000.00823.96
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0100.00023.82
8.1.230.0060.00620.93
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00317.23
8.1.190.0040.00417.10
8.1.180.0000.01018.10
8.1.170.0020.00518.64
8.1.160.0000.00721.89
8.1.150.0000.00718.43
8.1.140.0040.00417.26
8.1.130.0070.00017.27
8.1.120.0070.00017.37
8.1.110.0000.00717.33
8.1.100.0040.00417.32
8.1.90.0000.00717.25
8.1.80.0030.00317.29
8.1.70.0040.00417.20
8.1.60.0080.00017.43
8.1.50.0070.00017.22
8.1.40.0040.00417.44
8.1.30.0060.00317.44
8.1.20.0040.00417.49
8.1.10.0040.00417.45
8.1.00.0060.00317.25
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0070.00018.24
8.0.270.0040.00417.24
8.0.260.0050.00316.65
8.0.250.0000.00716.79
8.0.240.0080.00016.86
8.0.230.0070.00016.85
8.0.220.0000.00716.73
8.0.210.0040.00416.66
8.0.200.0060.00016.79
8.0.190.0000.00816.69
8.0.180.0030.00516.79
8.0.170.0040.00416.85
8.0.160.0000.00816.66
8.0.150.0000.00816.73
8.0.140.0000.00716.71
8.0.130.0000.00613.45
8.0.120.0000.00816.73
8.0.110.0000.00716.69
8.0.100.0050.00316.74
8.0.90.0030.00516.79
8.0.80.0070.01416.67
8.0.70.0040.00416.72
8.0.60.0070.00016.86
8.0.50.0050.00216.81
8.0.30.0100.00916.89
8.0.20.0130.00617.40
8.0.10.0040.00416.92
8.0.00.0110.00716.68
7.4.330.0000.00415.00
7.4.320.0000.00616.47
7.4.300.0000.00616.37
7.4.290.0000.00916.39
7.4.280.0030.00316.27
7.4.270.0030.00316.34
7.4.260.0000.00716.25
7.4.250.0000.00716.32
7.4.240.0020.00516.46
7.4.230.0030.00316.48
7.4.220.0060.01316.43
7.4.210.0080.00916.37
7.4.200.0000.00716.52
7.4.190.0080.00016.59
7.4.160.0070.01016.19
7.4.150.0110.00717.40
7.4.140.0050.01217.86
7.4.130.0120.00516.49
7.4.120.0050.01116.17
7.4.110.0090.00916.40
7.4.100.0180.00016.45
7.4.90.0040.01116.33
7.4.80.0120.01319.39
7.4.70.0070.01016.52
7.4.60.0070.01016.58
7.4.50.0020.00216.19
7.4.40.0030.01516.57
7.4.30.0110.00616.29
7.3.330.0030.00313.23
7.3.320.0050.00013.02
7.3.310.0050.00216.09
7.3.300.0040.00416.12
7.3.290.0070.00716.12
7.3.280.0110.00916.18
7.3.270.0120.00617.40
7.3.260.0120.00616.08
7.3.250.0100.00916.41
7.3.240.0090.00916.34
7.3.230.0070.01016.39
7.3.210.0100.01116.37
7.3.200.0060.01219.39
7.3.190.0100.00716.09
7.3.180.0070.01016.14
7.3.170.0090.00616.50
7.3.160.0060.00916.32
7.2.330.0100.00716.36
7.2.320.0090.01216.67
7.2.310.0150.00916.32
7.2.300.0150.00816.49
7.2.290.0080.01216.60
5.4.320.0050.03712.45
5.4.310.0060.04312.45
5.4.300.0040.03712.45
5.4.290.0070.04312.45
5.4.280.0080.05112.35
5.4.270.0100.03612.34
5.4.260.0080.03712.34
5.4.250.0070.04012.34
5.4.240.0060.03812.35
5.4.230.0090.03712.34
5.4.220.0090.03712.34
5.4.210.0020.04212.34
5.4.200.0090.03812.34
5.4.190.0130.05212.34
5.4.180.0110.05912.33
5.4.170.0070.05412.34
5.4.160.0060.04012.34
5.4.150.0120.03212.34
5.4.140.0040.04412.02
5.4.130.0080.03912.01
5.4.120.0040.04311.96
5.4.110.0050.04111.96
5.4.100.0080.05011.96
5.4.90.0050.04611.96
5.4.80.0110.05711.96
5.4.70.0090.05511.96
5.4.60.0090.05211.96
5.4.50.0080.03511.96
5.4.40.0090.03511.95
5.4.30.0070.03911.95
5.4.20.0020.03911.95
5.4.10.0070.03411.95
5.4.00.0070.03711.43
5.3.290.0050.04412.80
5.3.280.0100.04312.71
5.3.270.0070.04212.73
5.3.260.0070.04312.72
5.3.250.0100.04512.72
5.3.240.0110.04012.72
5.3.230.0070.04112.71
5.3.220.0060.04612.68
5.3.210.0050.04612.68
5.3.200.0110.06912.68
5.3.190.0100.05512.68
5.3.180.0050.05812.68
5.3.170.0070.05512.67
5.3.160.0080.05312.68
5.3.150.0080.05612.68
5.3.140.0090.03412.66
5.3.130.0050.04012.66
5.3.120.0080.04412.66
5.3.110.0070.04012.65
5.3.100.0080.03512.11
5.3.90.0080.03812.08
5.3.80.0080.04012.07
5.3.70.0070.03912.07
5.3.60.0050.03712.07
5.3.50.0050.04412.00
5.3.40.0070.05312.00
5.3.30.0130.04611.94
5.3.20.0090.03711.71
5.3.10.0080.03311.69
5.3.00.0060.03711.67

preferences:
46.69 ms | 401 KiB | 5 Q