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, 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.0100.00718.56
8.3.50.0060.00918.17
8.3.40.0120.00918.84
8.3.30.0110.00318.67
8.3.20.0070.00020.34
8.3.10.0060.00320.48
8.3.00.0030.00718.43
8.2.180.0130.01016.63
8.2.170.0170.00322.96
8.2.160.0060.01022.14
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00019.77
8.2.110.0100.00022.11
8.2.100.0040.00817.80
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0080.00517.93
8.2.50.0050.00318.09
8.2.40.0030.00620.20
8.2.30.0000.00719.49
8.2.20.0000.01017.75
8.2.10.0040.00418.17
8.2.00.0040.00418.10
8.1.280.0060.00825.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.62
8.1.230.0100.00017.83
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00818.61
8.1.160.0040.00420.68
8.1.150.0040.00418.99
8.1.140.0040.00419.58
8.1.130.0020.00517.70
8.1.120.0050.00317.33
8.1.110.0040.00417.47
8.1.100.0000.00817.52
8.1.90.0000.00917.45
8.1.80.0050.00217.46
8.1.70.0000.00717.45
8.1.60.0070.00717.60
8.1.50.0060.00317.59
8.1.40.0050.00517.54
8.1.30.0040.00417.61
8.1.20.0040.00417.58
8.1.10.0070.00017.65
8.1.00.0000.00817.50
8.0.300.0080.00018.77
8.0.290.0090.00016.63
8.0.280.0000.00718.49
8.0.270.0000.00717.28
8.0.260.0060.00017.25
8.0.250.0030.00317.09
8.0.240.0040.00416.93
8.0.230.0000.00716.95
8.0.220.0030.00416.91
8.0.210.0000.00716.86
8.0.200.0000.00616.95
8.0.190.0020.00517.05
8.0.180.0070.00016.99
8.0.170.0070.00016.96
8.0.160.0000.00716.95
8.0.150.0040.00416.91
8.0.140.0080.00016.89
8.0.130.0000.00613.41
8.0.120.0040.00416.81
8.0.110.0000.00717.00
8.0.100.0000.00716.97
8.0.90.0000.00816.76
8.0.80.0000.01516.94
8.0.70.0000.00716.78
8.0.60.0000.00816.94
8.0.50.0000.00816.83
8.0.30.0050.01317.06
8.0.20.0110.00717.40
8.0.10.0000.00717.04
8.0.00.0060.01416.82
7.4.330.0050.00016.74
7.4.320.0030.00316.58
7.4.300.0080.00016.52
7.4.290.0070.00016.57
7.4.280.0040.00416.55
7.4.270.0060.00316.61
7.4.260.0050.00516.61
7.4.250.0070.00016.37
7.4.240.0000.00816.49
7.4.230.0070.00016.70
7.4.220.0160.00416.43
7.4.210.0060.01216.61
7.4.200.0000.00716.43
7.4.160.0040.01516.47
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0180.00316.38
7.4.120.0100.01016.60
7.4.110.0090.00816.52
7.4.100.0070.01016.52
7.4.90.0070.01016.50
7.4.80.0030.01419.39
7.4.70.0000.01616.57
7.4.60.0110.00716.32
7.4.50.0060.01016.54
7.4.40.0150.00616.44
7.4.30.0080.00816.34
7.4.10.0030.01414.89
7.4.00.0080.01015.01
7.3.330.0000.00713.36
7.3.320.0050.00013.43
7.3.310.0000.00716.43
7.3.300.0030.00316.25
7.3.290.0000.00716.41
7.3.280.0100.00816.35
7.3.270.0030.01417.40
7.3.260.0070.01016.67
7.3.240.0080.01016.48
7.3.230.0100.00716.55
7.3.210.0000.01816.66
7.3.200.0140.00716.30
7.3.190.0000.01616.62
7.3.180.0060.01016.61
7.3.170.0080.01516.44
7.3.160.0160.01116.56
7.3.130.0130.00715.00
7.3.120.0080.00614.83
7.3.110.0110.00814.92
7.3.100.0030.01114.81
7.3.90.0010.01114.70
7.3.80.0050.00714.80
7.3.70.0050.00914.69
7.3.60.0070.00914.68
7.3.50.0090.00114.75
7.3.40.0040.01114.61
7.3.30.0100.00514.88
7.3.20.0110.00216.63
7.3.10.0040.00916.59
7.3.00.0080.00516.53
7.2.330.0110.00616.74
7.2.320.0140.01016.78
7.2.310.0050.01116.74
7.2.300.0040.01316.66
7.2.290.0110.00616.70
7.2.260.0070.01015.31
7.2.250.0050.01015.06
7.2.240.0090.00914.94
7.2.230.0080.00815.04
7.2.220.0040.00715.03
7.2.210.0030.01114.99
7.2.200.0040.00615.04
7.2.190.0020.01215.07
7.2.180.0080.00915.15
7.2.170.0050.01015.02
7.2.160.0030.01214.80
7.2.150.0090.00616.94
7.2.140.0070.01116.98
7.2.130.0030.01216.83
7.2.120.0050.00916.83
7.2.110.0090.00616.87
7.2.100.0090.00316.73
7.2.90.0030.00916.93
7.2.80.0040.00816.99
7.2.70.0050.00516.96
7.2.60.0080.00516.93
7.2.50.0060.00716.96
7.2.40.0030.01016.86
7.2.30.0040.00916.81
7.2.20.0060.00416.98
7.2.10.0090.00116.93
7.2.00.0060.00817.77
7.1.330.0090.00415.71
7.1.320.0080.00215.74
7.1.310.0090.00515.86
7.1.300.0070.00715.56
7.1.290.0050.01015.90
7.1.280.0050.00715.50
7.1.270.0000.01315.81
7.1.260.0040.00815.51
7.1.250.0040.00515.78
7.1.240.0100.00315.86
7.1.230.0000.01815.88
7.1.220.0040.01115.77
7.1.210.0080.00415.91
7.1.200.0120.00615.49
7.1.190.0040.00815.68
7.1.180.0060.00315.83
7.1.170.0120.00315.62
7.1.160.0060.00315.91
7.1.150.0000.01116.05
7.1.140.0040.01115.54
7.1.130.0090.00615.68
7.1.120.0000.01415.78
7.1.110.0060.01015.83
7.1.100.0070.00316.66
7.1.90.0040.00815.65
7.1.80.0060.00615.61
7.1.70.0030.00816.30
7.1.60.0070.00917.51
7.1.50.0050.01316.29
7.1.40.0000.00815.74
7.1.30.0000.00815.69
7.1.20.0040.01115.69
7.1.10.0070.00715.79
7.1.00.0100.03719.03
7.0.330.0070.00715.43
7.0.320.0060.00615.11
7.0.310.0040.01215.36
7.0.300.0000.01415.38
7.0.290.0070.00715.53
7.0.280.0040.00415.26
7.0.270.0040.01115.13
7.0.260.0100.00615.37
7.0.250.0050.00515.64
7.0.240.0060.00615.20
7.0.230.0000.01115.54
7.0.220.0030.00615.32
7.0.210.0070.00715.44
7.0.200.0290.00614.71
7.0.190.0060.01015.34
7.0.180.0030.00615.38
7.0.170.0000.00815.38
7.0.160.0090.00615.29
7.0.150.0000.01715.40
7.0.140.0000.00815.20
7.0.130.0070.00715.54
7.0.120.0040.00915.56
7.0.110.0060.00615.57
7.0.100.0030.00715.45
7.0.90.0000.01315.37
7.0.80.0100.00715.59
7.0.70.0000.01415.46
7.0.60.0070.04318.47
7.0.50.0090.04316.54
7.0.40.0050.03916.81
7.0.30.0270.03416.80
7.0.20.0130.04916.73
7.0.10.0090.03416.81
7.0.00.0080.02316.67
5.6.400.0040.00414.26
5.6.390.0090.00314.57
5.6.380.0070.00714.68
5.6.370.0040.00414.03
5.6.360.0060.00614.20
5.6.350.0040.00814.45
5.6.340.0040.00414.19
5.6.330.0040.01214.45
5.6.320.0060.00914.58
5.6.310.0080.00614.55
5.6.300.0000.00914.09
5.6.290.0030.01014.47
5.6.280.0020.02217.77
5.6.270.0060.00914.64
5.6.260.0030.01214.01
5.6.250.0070.00714.53
5.6.240.0000.01314.41
5.6.230.0070.01014.12
5.6.220.0040.00714.21
5.6.210.0090.02217.41
5.6.200.0030.03316.30
5.6.190.0070.02317.57
5.6.180.0130.02817.26
5.6.170.0130.03317.34
5.6.160.0070.03417.36
5.6.150.0130.03616.11
5.6.140.0080.04416.32
5.6.130.0080.02216.22
5.6.120.0020.05317.51
5.6.110.0130.04217.65
5.6.100.0050.02517.73
5.6.90.0120.04017.61
5.6.80.0070.03717.15
5.6.70.0030.01014.24
5.6.60.0040.00814.09
5.6.50.0060.00614.23
5.6.40.0060.00314.16
5.6.30.0030.00914.48
5.6.20.0060.01214.16
5.6.10.0070.00713.91
5.6.00.0000.01214.14
5.5.380.0040.00714.12
5.5.370.0070.01013.95
5.5.360.0030.01314.13
5.5.350.0180.04017.35
5.5.340.0080.03516.26
5.5.330.0090.04117.42
5.5.320.0310.03017.25
5.5.310.0230.03617.29
5.5.300.0040.02215.96
5.5.290.0050.02916.16
5.5.280.0130.03517.34
5.5.270.0050.03217.69
5.5.260.0080.03617.48
5.5.250.0120.01817.39
5.5.240.0070.03717.20
5.5.230.0000.00914.10
5.5.220.0000.01414.18
5.5.210.0040.00714.10
5.5.200.0120.00014.42
5.5.190.0070.00714.10
5.5.180.0030.01214.24
5.5.170.0070.01014.27
5.5.160.0030.01013.91
5.5.150.0120.00014.00
5.5.140.0060.00614.09
5.5.130.0040.00714.32
5.5.120.0060.01014.14
5.5.110.0040.00814.25
5.5.100.0060.00613.81
5.5.90.0060.00314.16
5.5.80.0090.00314.28
5.5.70.0000.01214.08
5.5.60.0000.00913.72
5.5.50.0000.00813.96
5.5.40.0040.00713.98
5.5.30.0070.01014.38
5.5.20.0100.00314.33
5.5.10.0100.00714.29
5.5.00.0070.00413.84

preferences:
57.69 ms | 400 KiB | 5 Q