3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arrToStr($arr){ $str = ""; foreach($arr as $a) $str .= $a; return $str; } $lol = array( "why" => ["wont", "this", "work"], "its" => ["pretty", "darn", "annoying"], "hur" => ["dur"] ); $omg = array_slice($lol, 0, 1, count($lol), true); foreach($omg as $wtf => $bbq){ printf("%s: %s", $wtf, printArr($bbq)); }

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.0070.00718.43
8.3.50.0140.00421.92
8.3.40.0090.00618.75
8.3.30.0110.00318.71
8.3.20.0040.00420.34
8.3.10.0000.00920.58
8.3.00.0100.00018.44
8.2.180.0120.00918.54
8.2.170.0070.00722.96
8.2.160.0080.00822.08
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00421.04
8.2.120.0070.00026.35
8.2.110.0060.00322.08
8.2.100.0090.00317.93
8.2.90.0050.00319.09
8.2.80.0000.00917.97
8.2.70.0090.00017.48
8.2.60.0070.00417.91
8.2.50.0080.00018.09
8.2.40.0030.00620.38
8.2.30.0000.00819.36
8.2.20.0060.00317.76
8.2.10.0000.00818.12
8.2.00.0050.00317.99
8.1.280.0140.00025.92
8.1.270.0000.00823.96
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0180.00020.79
8.1.230.0040.00717.71
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0030.00617.12
8.1.180.0040.00418.10
8.1.170.0030.00918.43
8.1.160.0000.00820.77
8.1.150.0000.00918.89
8.1.140.0040.00419.57
8.1.130.0000.00717.75
8.1.120.0040.00417.50
8.1.110.0040.00417.52
8.1.100.0070.00017.43
8.1.90.0040.00417.36
8.1.80.0000.00817.50
8.1.70.0040.00417.46
8.1.60.0030.00817.59
8.1.50.0000.00817.40
8.1.40.0060.00617.40
8.1.30.0000.00917.69
8.1.20.0000.00717.51
8.1.10.0000.00717.59
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.38
8.0.270.0040.00417.11
8.0.260.0030.00317.18
8.0.250.0030.00316.97
8.0.240.0040.00416.96
8.0.230.0040.00416.86
8.0.220.0000.00716.79
8.0.210.0050.00216.86
8.0.200.0000.00716.96
8.0.190.0040.00416.82
8.0.180.0000.00716.80
8.0.170.0050.00316.98
8.0.160.0020.00516.95
8.0.150.0020.00516.92
8.0.140.0040.00416.79
8.0.130.0050.00213.39
8.0.120.0040.00416.95
8.0.110.0020.00516.91
8.0.100.0040.00416.84
8.0.90.0090.00016.99
8.0.80.0070.00716.95
8.0.70.0040.00416.74
8.0.60.0070.00016.90
8.0.50.0000.00816.90
8.0.30.0090.00716.93
8.0.20.0100.01117.40
8.0.10.0040.00417.07
8.0.00.0120.00616.80
7.4.330.0000.00516.76
7.4.320.0060.00016.52
7.4.300.0050.00516.43
7.4.290.0000.00716.52
7.4.280.0040.00416.59
7.4.270.0000.01016.61
7.4.260.0040.00416.47
7.4.250.0000.00716.46
7.4.240.0050.00216.44
7.4.230.0030.00316.59
7.4.220.0070.01116.46
7.4.210.0110.00316.50
7.4.200.0070.00016.41
7.4.160.0090.00916.48
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0090.00816.51
7.4.120.0110.00716.49
7.4.110.0120.00416.66
7.4.100.0120.00616.68
7.4.90.0060.01016.46
7.4.80.0110.00719.39
7.4.70.0130.00316.36
7.4.60.0100.00716.39
7.4.50.0030.01416.41
7.4.40.0090.00916.79
7.4.30.0100.00716.53
7.4.10.0030.01214.75
7.4.00.0120.00315.00
7.3.330.0070.00013.26
7.3.320.0030.00213.24
7.3.310.0070.00016.35
7.3.300.0000.00716.28
7.3.290.0000.00716.17
7.3.280.0060.01016.32
7.3.270.0090.00917.40
7.3.260.0070.01016.52
7.3.250.0070.01216.36
7.3.240.0090.01016.45
7.3.230.0170.00016.39
7.3.210.0080.00816.51
7.3.200.0120.00616.41
7.3.190.0040.01416.25
7.3.180.0060.01016.29
7.3.170.0040.01216.39
7.3.160.0170.00716.28
7.3.130.0100.01014.88
7.3.120.0090.00914.75
7.3.110.0090.00914.82
7.3.100.0090.00914.92
7.3.90.0160.00314.66
7.3.80.0050.00514.78
7.3.70.0070.00714.40
7.3.60.0000.01514.80
7.3.50.0120.00314.78
7.3.40.0000.01414.47
7.3.30.0040.00414.81
7.3.20.0030.01016.79
7.3.10.0060.00916.70
7.3.00.0070.00716.52
7.2.330.0060.01316.56
7.2.320.0120.01216.69
7.2.310.0100.00716.45
7.2.300.0050.01116.70
7.2.290.0120.00916.53
7.2.260.0070.01114.94
7.2.250.0100.01015.12
7.2.240.0030.01315.18
7.2.230.0120.00314.94
7.2.220.0130.00314.74
7.2.210.0110.00414.88
7.2.200.0000.01515.11
7.2.190.0000.01314.90
7.2.180.0120.00315.12
7.2.170.0030.01314.84
7.2.160.0060.00615.06
7.2.150.0060.00917.09
7.2.140.0000.01416.82
7.2.130.0090.00916.82
7.2.120.0030.01016.89
7.2.110.0060.00916.87
7.2.100.0030.01316.68
7.2.90.0040.01116.73
7.2.80.0000.00916.89
7.2.70.0030.01216.99
7.2.60.0040.01116.97
7.2.50.0000.01617.07
7.2.40.0040.01117.10
7.2.30.0040.01516.75
7.2.20.0090.00616.83
7.2.10.0030.01016.79
7.2.00.0040.01117.02
7.1.330.0070.00715.59
7.1.320.0040.01115.90
7.1.310.0040.00716.00
7.1.300.0040.00715.89
7.1.290.0100.00315.76
7.1.280.0130.00315.78
7.1.270.0030.01015.93
7.1.260.0060.00915.57
7.1.250.0030.01315.63
7.1.240.0070.00715.72
7.1.230.0060.00915.40
7.1.220.0090.00915.96
7.1.210.0060.01215.70
7.1.200.0060.00615.86
7.1.190.0000.01315.90
7.1.180.0000.00915.48
7.1.170.0030.01015.50
7.1.160.0030.00615.52
7.1.150.0030.00615.80
7.1.140.0100.00315.89
7.1.130.0070.00315.66
7.1.120.0090.00315.86
7.1.110.0070.01015.91
7.1.100.0070.00715.97
7.1.90.0090.00615.50
7.1.80.0130.00615.95
7.1.70.0050.00616.49
7.1.60.0030.01317.49
7.1.50.0080.01116.41
7.1.40.0100.00315.55
7.1.30.0040.00715.95
7.1.20.0040.00415.46
7.1.10.0090.00615.78
7.1.00.0050.04019.22
7.0.330.0000.01415.56
7.0.320.0000.01515.46
7.0.310.0090.00315.36
7.0.300.0000.00915.30
7.0.290.0060.00815.40
7.0.280.0030.01215.40
7.0.270.0110.00415.27
7.0.260.0030.00715.15
7.0.250.0050.01015.43
7.0.240.0040.00815.39
7.0.230.0090.00915.53
7.0.220.0160.00315.38
7.0.210.0000.01515.25
7.0.200.0180.00414.94
7.0.190.0040.00815.57
7.0.180.0050.00315.18
7.0.170.0000.00815.27
7.0.160.0060.00615.57
7.0.150.0110.00415.18
7.0.140.0080.00815.44
7.0.130.0030.00715.54
7.0.120.0040.00815.14
7.0.110.0100.00615.45
7.0.100.0100.00615.54
7.0.90.0000.01415.58
7.0.80.0030.00715.15
7.0.70.0140.00315.37
7.0.60.0130.04218.60
7.0.50.0080.04016.65
7.0.40.0050.02616.74
7.0.30.0130.04416.92
7.0.20.0220.03716.79
7.0.10.0020.04916.98
7.0.00.0080.04516.81
5.6.400.0140.00314.61
5.6.390.0100.00614.54
5.6.380.0040.00714.51
5.6.370.0030.01014.49
5.6.360.0070.00414.18
5.6.350.0040.01414.55
5.6.340.0070.01014.23
5.6.330.0000.01414.38
5.6.320.0100.01014.61
5.6.310.0040.00814.24
5.6.300.0090.00914.56
5.6.290.0000.00914.16
5.6.280.0040.03317.52
5.6.270.0030.01014.38
5.6.260.0130.00014.39
5.6.250.0030.01314.32
5.6.240.0060.00614.26
5.6.230.0100.00314.22
5.6.220.0030.01014.21
5.6.210.0100.02417.44
5.6.200.0020.02816.26
5.6.190.0100.04317.42
5.6.180.0190.03317.47
5.6.170.0150.03717.56
5.6.160.0070.02217.43
5.6.150.0050.03916.35
5.6.140.0080.02316.24
5.6.130.0160.03616.23
5.6.120.0070.02917.60
5.6.110.0080.04617.52
5.6.100.0070.02517.66
5.6.90.0080.04017.72
5.6.80.0080.02717.31
5.6.70.0000.01714.26
5.6.60.0110.00314.14
5.6.50.0130.00714.22
5.6.40.0070.00714.14
5.6.30.0030.00914.00
5.6.20.0090.00614.16
5.6.10.0000.00913.97
5.6.00.0140.00014.14
5.5.380.0090.00014.24
5.5.370.0060.00313.91
5.5.360.0030.01014.23
5.5.350.0150.04117.49
5.5.340.0080.04316.07
5.5.330.0080.04417.21
5.5.320.0250.03317.30
5.5.310.0170.03917.26
5.5.300.0020.02516.06
5.5.290.0130.03016.06
5.5.280.0090.02217.42
5.5.270.0050.04817.40
5.5.260.0000.03017.36
5.5.250.0030.02517.51
5.5.240.0080.04117.29
5.5.230.0040.01113.79
5.5.220.0100.01014.04
5.5.210.0000.01014.02
5.5.200.0000.00814.29
5.5.190.0070.00714.05
5.5.180.0040.00413.95
5.5.170.0030.00614.30
5.5.160.0040.00414.01
5.5.150.0100.00314.09
5.5.140.0070.00714.32
5.5.130.0030.01314.42
5.5.120.0040.00714.04
5.5.110.0090.00314.39
5.5.100.0090.00613.89
5.5.90.0000.01314.03
5.5.80.0080.00713.74
5.5.70.0110.00014.12
5.5.60.0040.00814.20
5.5.50.0040.00413.97
5.5.40.0000.01514.24
5.5.30.0030.00614.25
5.5.20.0030.00914.33
5.5.10.0040.00713.86
5.5.00.0070.00714.15

preferences:
83.18 ms | 401 KiB | 5 Q