3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Recursion { private static function printArray() { print_r(self::$array); } public static function recursionInitiatorParent($information, $list) { self::$array = $information; self::$keylist = $list; $keywords = explode(",", self::$keylist); echo "Before: \n\n"; self::printArray(); foreach($keywords as $key) self::recursionInitiator($key); echo "\n======================================= \n\n"; self::printArray(); } private static function recursionInitiator($key) { } private static $asterisk = "**"; private static $array; private static $keylist; } $information = array("login" => "someUsername", "password" => "somePassword", "card_pin"=>"card_1234", "pin"=>"pin_356", "iin" => "iin_123", "shipping" => array("telephone" => "telephone_998"), "cardnumber" => "card_number_876", "customer_id" => "customer_654"); $list = "telephone,iin"; Recursion::recursionInitiatorParent($information, $list);

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.0110.00418.31
8.3.60.0090.00616.75
8.3.50.0150.00621.98
8.3.40.0090.00618.70
8.3.30.0100.00318.71
8.3.20.0000.00720.34
8.3.10.0040.00423.61
8.3.00.0000.00819.25
8.2.180.0140.00018.30
8.2.170.0090.00922.96
8.2.160.0100.00322.17
8.2.150.0140.00424.18
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0050.00221.18
8.2.110.0160.00721.07
8.2.100.0060.00619.51
8.2.90.0040.00417.75
8.2.80.0080.00417.97
8.2.70.0030.00617.93
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0030.00620.59
8.2.30.0070.00020.63
8.2.20.0090.00017.75
8.2.10.0000.00918.12
8.2.00.0000.00718.02
8.1.280.0110.01125.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00822.10
8.1.230.0000.01119.14
8.1.220.0000.00917.79
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0030.00618.65
8.1.160.0000.00822.10
8.1.150.0040.00418.90
8.1.140.0080.00019.55
8.1.130.0000.00717.75
8.1.120.0040.00417.50
8.1.110.0050.00217.46
8.1.100.0040.00417.48
8.1.90.0020.00517.51
8.1.80.0030.00517.44
8.1.70.0030.00317.33
8.1.60.0030.00717.48
8.1.50.0030.00517.56
8.1.40.0040.00417.52
8.1.30.0050.00317.63
8.1.20.0000.00817.67
8.1.10.0040.00417.50
8.1.00.0060.00317.56
8.0.300.0070.00019.65
8.0.290.0000.00816.75
8.0.280.0030.00318.40
8.0.270.0080.00017.20
8.0.260.0000.00817.27
8.0.250.0070.00016.88
8.0.240.0000.00616.86
8.0.230.0000.00716.86
8.0.220.0000.00716.96
8.0.210.0020.00516.79
8.0.200.0040.00416.95
8.0.190.0030.00517.00
8.0.180.0000.00716.89
8.0.170.0050.00216.80
8.0.160.0040.00416.88
8.0.150.0120.00016.68
8.0.140.0070.00016.80
8.0.130.0030.00313.36
8.0.120.0080.00016.91
8.0.110.0000.00816.84
8.0.100.0040.00416.75
8.0.90.0000.00716.81
8.0.80.0130.00316.89
8.0.70.0070.00016.73
8.0.60.0040.00416.85
8.0.50.0000.00716.77
8.0.30.0090.01017.26
8.0.20.0100.01017.41
8.0.10.0070.00017.09
8.0.00.0110.00816.74
7.4.330.0020.00215.08
7.4.320.0070.00016.51
7.4.300.0040.00416.61
7.4.290.0030.00316.50
7.4.280.0000.00816.57
7.4.270.0050.00216.64
7.4.260.0040.00216.54
7.4.250.0080.00016.66
7.4.240.0020.00516.59
7.4.230.0030.00316.50
7.4.220.0100.00716.54
7.4.210.0030.01716.64
7.4.200.0080.00016.37
7.4.160.0040.01216.62
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0060.01016.59
7.4.120.0080.01016.47
7.4.110.0140.00416.33
7.4.100.0110.01116.42
7.4.90.0130.00416.70
7.4.80.0100.00719.39
7.4.70.0090.00616.67
7.4.60.0060.01016.51
7.4.50.0160.00516.48
7.4.40.0080.00916.72
7.4.30.0060.01316.56
7.4.00.0030.01114.76
7.3.330.0000.00613.16
7.3.320.0060.00013.15
7.3.310.0070.00016.23
7.3.300.0000.00716.36
7.3.290.0080.01116.31
7.3.280.0130.00616.35
7.3.270.0080.00817.40
7.3.260.0110.01416.41
7.3.250.0100.01016.33
7.3.240.0070.01016.45
7.3.230.0070.01016.63
7.3.210.0190.00416.37
7.3.200.0100.00716.48
7.3.190.0080.01216.55
7.3.180.0150.00316.61
7.3.170.0030.01316.59
7.3.160.0050.01016.43
7.2.330.0140.00316.87
7.2.320.0140.00316.47
7.2.310.0060.01116.62
7.2.300.0090.00916.80
7.2.290.0140.00416.52
7.2.00.0000.01119.56
7.1.200.0060.00615.73
7.1.100.0000.00717.97
7.1.70.0030.00617.03
7.1.60.0140.01019.48
7.1.50.0110.00716.73
7.1.00.0030.07722.35
7.0.200.0040.00416.66
7.0.60.0170.07019.95
7.0.50.0030.04317.96
7.0.40.0130.07320.14
7.0.30.0230.04320.21
7.0.20.0230.03720.25
7.0.10.0000.08020.11
7.0.00.0070.05020.24
5.6.280.0070.05321.02
5.6.210.0170.07320.63
5.6.200.0130.03718.12
5.6.190.0070.05020.48
5.6.180.0230.07320.48
5.6.170.0270.08020.71
5.6.160.0130.07320.55
5.6.150.0030.08318.19
5.6.140.0030.08018.19
5.6.130.0070.04718.13
5.6.120.0100.07021.02
5.6.110.0070.06321.12
5.6.100.0170.07321.09
5.6.90.0070.04321.04
5.6.80.0170.07020.53
5.5.350.2130.04720.36
5.5.340.0070.08718.05
5.5.330.0100.03720.27
5.5.320.0230.08020.37
5.5.310.0330.04020.34
5.5.300.0100.07718.02
5.5.290.0070.04017.98
5.5.280.0000.04320.88
5.5.270.0070.07020.77
5.5.260.0070.07320.74
5.5.250.0030.04020.59
5.5.240.0070.06320.07

preferences:
62.57 ms | 401 KiB | 5 Q