3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_data1 = array('one','two','three'); // all is ok $test_data2 = array(array('one','two','three')); // windows error: // #The instruction at '<address>' referenced memory at '<address>'. // #The memory could not be read. // #Click OK to terminate the program. // No error shows up in console, sometimes script stops without error but sometimes executes like nothing is happening. $test_data3 = array(array('one','two','three'),array('four','five','six')); // error in PHP console: // Fatal error: Call to a member function show_message() on a non-object in c:\scripts\found-error.php on line xx // values one two three are displayed, four five and six are ommitted. class myClass { function iterate_multidim_array($array) { array_walk_recursive($array,function(&$val,$key,&$obj) { $obj->show_message($val); },$this); } function show_message($msg) { echo $msg."\n"; } } $myInstance = new MyClass(); $myInstance-> iterate_multidim_array($test_data3); ?>

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.55
8.3.50.0090.00522.05
8.3.40.0040.01118.71
8.3.30.0070.00719.12
8.3.20.0000.00820.39
8.3.10.0080.00022.05
8.3.00.0040.00422.30
8.2.180.0120.00316.50
8.2.170.0060.01322.96
8.2.160.0030.01020.96
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.51
8.2.110.0030.00622.13
8.2.100.0080.00419.76
8.2.90.0040.00419.13
8.2.80.0030.00618.03
8.2.70.0120.00017.63
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0000.00817.95
8.2.20.0070.00017.64
8.2.10.0000.00817.73
8.2.00.0040.00417.80
8.1.280.0110.00425.92
8.1.270.0060.00323.79
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00923.98
8.1.230.0080.00419.15
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0000.00817.41
8.1.180.0030.00518.10
8.1.170.0050.00318.46
8.1.160.0040.00421.93
8.1.150.0040.00418.64
8.1.140.0040.00417.33
8.1.130.0030.00317.84
8.1.120.0000.00717.47
8.1.110.0070.00017.48
8.1.100.0040.00417.38
8.1.90.0030.00517.47
8.1.80.0050.00217.35
8.1.70.0000.00717.41
8.1.60.0000.00817.61
8.1.50.0040.00417.48
8.1.40.0080.00017.37
8.1.30.0030.00617.69
8.1.20.0000.00817.67
8.1.10.0040.00417.56
8.1.00.0030.00517.57
8.0.300.0050.00218.77
8.0.290.0000.00717.04
8.0.280.0070.00018.38
8.0.270.0030.00317.30
8.0.260.0030.00316.90
8.0.250.0070.00016.91
8.0.240.0000.00716.93
8.0.230.0050.00217.06
8.0.220.0030.00316.94
8.0.210.0040.00416.88
8.0.200.0040.00417.00
8.0.190.0040.00416.93
8.0.180.0030.00716.86
8.0.170.0030.00516.88
8.0.160.0070.00016.96
8.0.150.0030.00616.87
8.0.140.0040.00416.96
8.0.130.0030.00313.36
8.0.120.0000.00816.90
8.0.110.0000.00716.96
8.0.100.0000.00816.84
8.0.90.0000.00816.77
8.0.80.0070.01416.95
8.0.70.0040.00417.04
8.0.60.0040.00416.84
8.0.50.0040.00417.01
8.0.30.0140.00817.21
8.0.20.0120.00917.40
8.0.10.0050.00217.05
8.0.00.0110.00716.77
7.4.330.0050.00015.00
7.4.320.0000.00716.60
7.4.300.0000.00616.37
7.4.290.0080.00016.59
7.4.280.0030.00316.57
7.4.270.0070.00016.67
7.4.260.0040.00716.45
7.4.250.0040.00416.50
7.4.240.0020.00516.51
7.4.230.0000.00716.37
7.4.220.0130.01016.51
7.4.210.0070.00716.45
7.4.200.0070.00016.41
7.4.190.0030.00316.44
7.4.160.0060.00916.61
7.4.150.0040.01417.40
7.4.140.0070.01117.86
7.4.130.0150.00416.56
7.4.120.0060.01216.56
7.4.110.0150.00916.49
7.4.100.0200.00316.59
7.4.90.0070.01016.61
7.4.80.0120.00619.39
7.4.70.0050.01116.63
7.4.60.0070.01016.44
7.4.50.0040.00416.36
7.4.40.0150.00022.77
7.4.30.0030.02016.43
7.4.00.0050.01115.21
7.3.330.0000.00513.09
7.3.320.0000.00513.23
7.3.310.0020.00516.34
7.3.300.0050.00216.30
7.3.290.0090.00916.34
7.3.280.0120.00616.27
7.3.270.0090.01217.40
7.3.260.0080.01716.38
7.3.250.0100.00816.44
7.3.240.0090.00616.30
7.3.230.0130.00416.39
7.3.210.0090.00916.22
7.3.200.0060.01619.39
7.3.190.0070.01016.43
7.3.180.0110.00516.23
7.3.170.0100.00616.40
7.3.160.0070.01016.31
7.3.120.0040.01314.75
7.3.110.0070.01014.76
7.3.100.0130.00614.52
7.3.90.0080.01115.15
7.3.80.0070.00714.67
7.3.70.0000.01214.75
7.3.60.0030.01214.85
7.3.50.0040.01214.72
7.3.40.0080.00814.84
7.3.30.0040.01214.64
7.3.20.0090.00316.61
7.3.10.0070.01016.71
7.3.00.0080.00416.59
7.2.330.0100.01016.80
7.2.320.0170.00016.73
7.2.310.0110.00616.36
7.2.300.0150.00616.42
7.2.290.0070.01016.50
7.2.250.0090.00615.02
7.2.240.0060.01015.10
7.2.230.0080.00414.71
7.2.220.0060.00614.79
7.2.210.0070.01015.27
7.2.200.0030.01014.84
7.2.190.0100.00714.84
7.2.180.0060.01214.83
7.2.170.0060.00915.04
7.2.60.0060.00617.05
7.2.00.0100.00619.57
7.1.330.0080.00815.46
7.1.320.0030.00915.79
7.1.310.0060.00915.81
7.1.300.0070.01015.82
7.1.290.0030.01315.45
7.1.280.0090.00315.85
7.1.270.0040.01115.54
7.1.260.0110.00615.80
7.1.200.0060.00915.78
7.1.100.0060.00618.14
7.1.70.0000.00917.05
7.1.60.0110.01119.82
7.1.50.0040.01817.06
7.1.00.0100.07022.54
7.0.200.0060.00616.90
7.0.140.0030.07321.98
7.0.60.0030.04019.91
7.0.50.0130.03017.85
7.0.40.0030.05020.21
7.0.30.0030.05320.08
7.0.20.0200.08720.26
7.0.10.0070.08720.05
7.0.00.0100.08020.33
5.6.210.0130.04720.73
5.6.200.0070.08718.19
5.6.190.0070.09020.55
5.6.180.3700.04020.57
5.6.170.0270.07320.46
5.6.160.0130.07720.43
5.6.150.0070.03718.17
5.6.140.0030.04318.18
5.6.130.0100.08018.17
5.6.120.0030.04021.02
5.6.110.0130.05321.16
5.6.100.0100.07321.12
5.6.90.0130.04320.99
5.6.80.0170.05320.50
5.6.70.4330.04020.51
5.5.350.0130.08020.39
5.5.340.0100.07718.01
5.5.330.0030.05320.57
5.5.320.3670.04320.30
5.5.310.0230.08020.41
5.5.300.0170.06317.95
5.5.290.0030.04018.03
5.5.280.0130.08320.89
5.5.270.0000.07020.66
5.5.260.0000.04320.73
5.5.250.0130.05320.78
5.5.240.0200.02720.27
5.4.450.3200.03019.32
5.4.440.2130.04719.41
5.4.430.1830.03719.64
5.4.420.2270.04019.32
5.4.410.2670.03719.50
5.4.400.3200.03719.23
5.4.390.3630.02719.04
5.4.380.3070.04019.07
5.4.370.3430.03719.22
5.4.360.3500.04019.16
5.4.350.3430.03719.08
5.4.340.3230.03719.06
5.4.320.3270.03719.25
5.4.310.3330.03719.06
5.4.300.3600.03018.94
5.4.290.3600.03319.22
5.4.280.3270.03318.84
5.4.270.3170.04018.94
5.4.260.3230.03718.87
5.4.250.3730.04019.18
5.4.240.3800.04019.21
5.4.230.3530.03319.21
5.4.220.2430.05018.97
5.4.210.3600.03719.06
5.4.200.3530.02718.84
5.4.190.3400.03719.21
5.4.180.3230.03719.21
5.4.170.3600.04019.14
5.4.160.3300.03719.16
5.4.150.0000.04019.18
5.4.140.0070.04316.38
5.4.130.3200.04016.50
5.4.120.3600.03316.51
5.4.110.3270.03316.45
5.4.100.3500.03716.31
5.4.90.3300.03016.61
5.4.80.3470.04016.58
5.4.70.3570.03316.39
5.4.60.3600.03716.34
5.4.50.3870.03016.54
5.4.40.3530.04016.32
5.4.30.3300.04016.55
5.4.20.0070.04716.53
5.4.10.3530.03716.55
5.4.00.3430.03715.82
5.3.290.3330.03314.59
5.3.280.3600.03014.77
5.3.270.3770.04014.63
5.3.260.1770.04314.66
5.3.250.0070.04314.77
5.3.240.2930.03714.70
5.3.230.3200.03714.70
5.3.220.3530.04014.58
5.3.210.3030.04014.73
5.3.200.3100.04014.60
5.3.190.3270.03714.66
5.3.180.3600.03014.56
5.3.170.3600.03014.73
5.3.160.3470.03314.67
5.3.150.3430.04714.73
5.3.140.3530.04014.48
5.3.130.0030.07314.54
5.3.120.0100.06714.48
5.3.110.1830.06014.64
5.3.100.3230.04014.10
5.3.90.3570.03713.95
5.3.80.3570.03714.11
5.3.70.3630.04713.94
5.3.60.2970.03714.10
5.3.50.3430.03313.94
5.3.40.3370.03714.05
5.3.30.3530.04013.82
5.3.20.3570.03013.80
5.3.10.3370.04013.67
5.3.00.3570.03013.56
5.2.170.3030.02711.06
5.2.160.2930.03011.38
5.2.150.2730.03311.08
5.2.140.2930.03011.08
5.2.130.2670.03011.03
5.2.120.3100.03011.07
5.2.110.3130.03311.29
5.2.100.2930.03311.18
5.2.90.2700.03011.01
5.2.80.2730.03011.19
5.2.70.2800.03311.10
5.2.60.2970.03311.00
5.2.50.3070.03010.92
5.2.40.2500.02311.11
5.2.30.2400.02710.89
5.2.20.2400.02710.87
5.2.10.2900.02310.77
5.2.00.2700.02710.65
5.1.60.2170.02710.13
5.1.50.1970.0209.88
5.1.40.2230.0209.96
5.1.30.1900.02710.42
5.1.20.2170.02310.47
5.1.10.2170.02310.16
5.1.00.2330.0339.96
5.0.50.0930.0238.67
5.0.40.1170.0208.49
5.0.30.0930.0308.12
5.0.20.1130.0138.18
5.0.10.0870.0238.10
5.0.00.1070.0308.08
4.4.90.1170.0176.04
4.4.80.1300.0176.04
4.4.70.1330.0206.04
4.4.60.1470.0176.04
4.4.50.0670.0176.04
4.4.40.1100.0236.04
4.4.30.0400.0136.04
4.4.20.1070.0136.04
4.4.10.1130.0106.04
4.4.00.0870.0276.04
4.3.110.1200.0136.04
4.3.100.0830.0136.04
4.3.90.0900.0136.04
4.3.80.1000.0206.04
4.3.70.1070.0176.04
4.3.60.1100.0136.04
4.3.50.0600.0076.04
4.3.40.1170.0236.04
4.3.30.0300.0176.04
4.3.20.0570.0136.04
4.3.10.0530.0176.04
4.3.00.0530.0176.04

preferences:
45.08 ms | 401 KiB | 5 Q