3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR | E_WARNING); /*const SUD = "132579468 498261375 756384219 643158792 521793846 987426531 214935687 365817924 879642153 132579468 498261375 756384219 643158792 521793846 987426531 214935687 365817924 879642135";*/ const SUD = "571324698 496158273 832976451 258419736 913567842 684732519 165843927 749281365 327695184 756239419 312495786 489176235 168723954 927584163 543961827 295617348 631849572 874352691 429756831 857431629 136298457 541379268 783162594 692845713 318524976 264917385 975683142 685239174 342517869 971864235 279386541 156742398 834951726 467128953 913675482 528493617 547192683 192683574 638457129 783925461 219846735 456371892 974538276 865219341 321764958 289367241 543195768 761248539 136429875 978516423 452873916 324951687 615782394 897634152 875194632 931682745 642573819 269457381 183269457 457318926 396821574 718945263 524836197 945862317 682731954 713495268 169513742 857124693 234679581 378986425 526348179 491257836"; for(;$i-strlen($s=SUD)-2;$e=array()){($n=$i++%91)%10-9?$A[3*(int)($n/30)+$n%10/3][]=$B[$n%10][]=$C[$n/10][]=$s[$i-1]:0; if (--$i==180){ //var_dump($i, $A,$B,$C); $str = str_repeat("\n", 90); foreach ($A as $r1 => $a2) { var_dump(count($a2)); foreach ($a2 as $r2 => $v) { $key = ((int)($r1/3))*30+3*($r1%3)+$r2%3+((int)($r2/3))*10; // var_dump($key); $str[$key] = $v; } } print $str; print "_____________________________________________\n";} foreach ($A as $r1 => &$a2) { $a2 = array(); } $i++; //var_dump($GLOBALS); if($n>89){for($g='A';$g++<'C'&&!$e;)for($_=0;$_<9&&!$e;) //var_dump($g,sizeof($$g), ${$g}[$_], $e=array_unique($u=${$g}[$_++])!=$u; echo!$e?:0;} } // $e += \n

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.0090.00618.52
8.3.50.0130.01016.81
8.3.40.0090.00618.92
8.3.30.0120.00918.79
8.3.20.0090.00018.82
8.3.10.0060.00320.56
8.3.00.0030.00617.75
8.2.180.0100.01316.88
8.2.170.0160.00022.96
8.2.160.0000.01522.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.91
8.2.110.0030.00720.42
8.2.100.0070.00717.97
8.2.90.0060.00318.09
8.2.80.0100.00018.29
8.2.70.0000.00918.18
8.2.60.0030.00718.41
8.2.50.0040.00418.10
8.2.40.0090.00019.42
8.2.30.0040.00419.44
8.2.20.0000.00917.94
8.2.10.0030.00617.93
8.2.00.0050.00517.87
8.1.280.0040.01225.92
8.1.270.0030.00623.99
8.1.260.0100.00626.35
8.1.250.0000.00828.09
8.1.240.0040.00722.45
8.1.230.0070.00721.04
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0000.01117.50
8.1.190.0000.00917.48
8.1.180.0000.01018.10
8.1.170.0040.00418.68
8.1.160.0030.00619.09
8.1.150.0030.00618.93
8.1.140.0060.00317.72
8.1.130.0040.00418.00
8.1.120.0060.00317.59
8.1.110.0040.00417.58
8.1.100.0030.00617.64
8.1.90.0060.00317.68
8.1.80.0080.00017.66
8.1.70.0000.00817.63
8.1.60.0030.00717.87
8.1.50.0030.00617.69
8.1.40.0050.00517.75
8.1.30.0030.00617.81
8.1.20.0070.00317.85
8.1.10.0030.00617.80
8.1.00.0000.00917.66
8.0.300.0000.00920.30
8.0.290.0000.00916.88
8.0.280.0040.00418.68
8.0.270.0000.00717.42
8.0.260.0000.00716.97
8.0.250.0030.00617.19
8.0.240.0080.00417.21
8.0.230.0040.00317.11
8.0.220.0040.00417.17
8.0.210.0040.00417.00
8.0.200.0000.00717.05
8.0.190.0030.00617.21
8.0.180.0030.00517.11
8.0.170.0000.01017.12
8.0.160.0040.00417.14
8.0.150.0060.00317.06
8.0.140.0080.00316.98
8.0.130.0040.00413.49
8.0.120.0030.00517.10
8.0.110.0050.00317.13
8.0.100.0080.00017.17
8.0.90.0060.00317.19
8.0.80.0080.00817.12
8.0.70.0040.00417.13
8.0.60.0000.00817.16
8.0.50.0080.00017.00
8.0.30.0140.00817.24
8.0.20.0110.00917.46
8.0.10.0000.00817.29
8.0.00.0070.01616.88
7.4.330.0050.00014.81
7.4.320.0030.00316.63
7.4.300.0000.00716.78
7.4.290.0040.00416.73
7.4.280.0060.00316.79
7.4.270.0080.00016.77
7.4.260.0060.00013.52
7.4.250.0030.00616.77
7.4.240.0000.00816.78
7.4.230.0030.00516.76
7.4.220.0110.00716.79
7.4.210.0080.01016.78
7.4.200.0000.00816.68
7.4.190.0000.00716.64
7.4.160.0080.01316.54
7.4.150.0100.01017.07
7.4.140.0110.01217.30
7.4.130.0080.01016.79
7.4.120.0110.00716.66
7.4.110.0200.00516.61
7.4.100.0140.01116.66
7.4.90.0070.01116.79
7.4.80.0070.01118.80
7.4.70.0090.00916.82
7.4.60.0130.00616.75
7.4.50.0000.00616.48
7.4.40.0100.01022.27
7.4.30.0130.00716.76
7.4.10.0070.01315.28
7.4.00.0080.01015.21
7.3.330.0000.00713.48
7.3.320.0000.00513.25
7.3.310.0080.00016.57
7.3.300.0040.00416.57
7.3.290.0060.00816.60
7.3.280.0100.00716.53
7.3.270.0150.00417.07
7.3.260.0090.01318.24
7.3.250.0100.00916.64
7.3.240.0030.01516.58
7.3.230.0060.01116.61
7.3.210.0120.01216.63
7.3.200.0130.00619.39
7.3.190.0120.00616.55
7.3.180.0100.00716.44
7.3.170.0130.00716.61
7.3.160.0060.01116.64
7.3.130.0100.01015.01
7.3.120.0030.01414.97
7.3.110.0030.01614.54
7.3.100.0100.00615.07
7.3.90.0040.00815.11
7.3.80.0000.01414.96
7.3.70.0000.01515.02
7.3.60.0030.00915.05
7.3.50.0090.00615.04
7.3.40.0110.00415.08
7.3.30.0040.01114.76
7.3.20.0000.00916.50
7.3.10.0120.00316.60
7.3.00.0070.01016.66
7.2.330.0060.01216.70
7.2.320.0140.00416.89
7.2.310.0190.00716.61
7.2.300.0070.01116.92
7.2.290.0040.01416.67
7.2.260.0040.01515.01
7.2.250.0060.01315.14
7.2.240.0030.01415.19
7.2.230.0040.00714.98
7.2.220.0090.00615.43
7.2.210.0040.01214.93
7.2.200.0070.00715.36
7.2.190.0040.01115.04
7.2.180.0120.00015.29
7.2.170.0100.00615.37
7.2.160.0030.01015.39
7.2.150.0000.01016.81
7.2.140.0090.00616.91
7.2.130.0060.00917.09
7.2.120.0030.01216.90
7.2.110.0030.01317.08
7.2.100.0060.00617.07
7.2.90.0030.01416.71
7.2.80.0090.00616.82
7.2.70.0100.00717.05
7.2.60.0030.01016.95
7.2.50.0030.01617.03
7.2.40.0030.00617.02
7.2.30.0060.01016.92
7.2.20.0070.00717.06
7.2.10.0060.00916.92
7.2.00.0060.00818.34
7.1.330.0060.00915.82
7.1.320.0040.01116.05
7.1.310.0060.01015.94
7.1.300.0030.01315.75
7.1.290.0000.01615.90
7.1.280.0060.00315.79
7.1.270.0030.01015.89
7.1.260.0170.00015.93
7.1.250.0090.00615.60
7.1.240.0100.00715.84
7.1.230.0030.01215.70
7.1.220.0120.00315.86
7.1.210.0040.01115.86
7.1.200.0090.00415.81
7.1.190.0070.00715.89
7.1.180.0060.00915.93
7.1.170.0120.00315.82
7.1.160.0030.01015.70
7.1.150.0000.01716.02
7.1.140.0120.00315.56
7.1.130.0060.01015.75
7.1.120.0110.00715.98
7.1.110.0030.00915.96
7.1.100.0060.01017.12
7.1.90.0070.01016.01
7.1.80.0040.01115.64
7.1.70.0050.00516.36
7.1.60.0130.00817.55
7.1.50.0120.00616.42
7.1.40.0110.00415.64
7.1.30.0130.00315.68
7.1.20.0090.00315.95
7.1.10.0090.00615.71
7.1.00.0060.03319.25
7.0.330.0090.00315.24
7.0.320.0030.00915.33
7.0.310.0060.00915.49
7.0.300.0070.00715.20
7.0.290.0040.00815.17
7.0.280.0040.01115.61
7.0.270.0000.01615.43
7.0.260.0000.01115.36
7.0.250.0000.01215.54
7.0.240.0060.00615.59
7.0.230.0080.00815.19
7.0.220.0000.01715.46
7.0.210.0070.00715.49
7.0.200.0030.00716.14
7.0.190.0060.00915.53
7.0.180.0130.00315.49
7.0.170.0070.00715.41
7.0.160.0040.01115.52
7.0.150.0070.01015.17
7.0.140.0040.04218.78
7.0.130.0080.00415.43
7.0.120.0100.00615.54
7.0.110.0050.04517.76
7.0.100.0070.04817.86
7.0.90.0040.03817.74
7.0.80.0130.03517.73
7.0.70.0050.03817.67
7.0.60.0040.05117.79
7.0.50.0080.04617.99
7.0.40.0020.05116.66
7.0.30.0110.02716.90
7.0.20.0040.05116.91
7.0.10.0030.05016.78
7.0.00.0080.04116.84
5.6.400.0030.01714.64
5.6.390.0070.00714.69
5.6.380.0060.00914.66
5.6.370.0030.01214.82
5.6.360.0030.00814.57
5.6.350.0030.01414.51
5.6.340.0030.00914.52
5.6.330.0070.00714.81
5.6.320.0030.01314.83
5.6.310.0080.00314.75
5.6.300.0070.01314.31
5.6.290.0070.01414.32
5.6.280.0070.04017.78
5.6.270.0030.01014.64
5.6.260.0060.03017.44
5.6.250.0100.04417.59
5.6.240.0090.04217.53
5.6.230.0070.04917.72
5.6.220.0070.04217.63
5.6.210.0070.04817.51
5.6.200.0080.05017.86
5.6.190.0060.03817.82
5.6.180.0100.04017.89
5.6.170.0110.04617.85
5.6.160.0150.02517.87
5.6.150.0070.02617.67
5.6.140.0080.03017.81
5.6.130.0050.04217.80
5.6.120.0110.04117.94
5.6.110.0050.03417.81
5.6.100.0070.04617.76
5.6.90.0130.03417.86
5.6.80.0080.03917.55
5.6.70.0090.03617.42
5.6.60.0070.04317.35
5.6.50.0100.02717.46
5.6.40.0100.04217.44
5.6.30.0110.04117.56
5.6.20.0050.03417.57
5.6.10.0110.04417.34
5.6.00.0100.04017.26
5.5.380.0100.04517.57
5.5.370.0130.04117.64
5.5.360.0080.04717.51
5.5.350.0060.04717.47
5.5.340.0010.04817.78
5.5.330.0130.04317.85
5.5.320.0150.03717.76
5.5.310.0070.04717.68
5.5.300.0100.04217.65
5.5.290.0120.04317.83
5.5.280.0050.05117.84
5.5.270.0050.05217.88
5.5.260.0080.04617.61
5.5.250.0100.04417.50
5.5.240.0100.04017.32
5.5.230.0100.02617.45
5.5.220.0080.04217.34
5.5.210.0070.04317.39
5.5.200.0130.04017.37
5.5.190.0090.04517.30
5.5.180.0090.04517.47
5.5.170.0060.00914.44
5.5.160.0080.03817.39
5.5.150.0140.04017.14
5.5.140.0030.05017.47
5.5.130.0050.04717.35
5.5.120.0070.04517.34
5.5.110.0100.04617.34
5.5.100.0030.05017.24
5.5.90.0050.03217.33
5.5.80.0090.03217.23
5.5.70.0050.03717.38
5.5.60.0080.04217.39
5.5.50.0080.04117.42
5.5.40.0070.04717.16
5.5.30.0080.03917.32
5.5.20.0050.04217.30
5.5.10.0070.03217.41
5.5.00.0080.03217.36
5.4.450.0080.02716.30
5.4.440.0070.04416.34
5.4.430.0050.04516.34
5.4.420.0020.04016.26
5.4.410.0070.04316.22
5.4.400.0100.04016.18
5.4.390.0070.04416.14
5.4.380.0090.03716.21
5.4.370.0050.02716.13
5.4.360.0130.03516.20
5.4.350.0030.04316.25
5.4.340.0050.04616.13
5.4.330.0030.01013.25
5.4.320.0070.04716.25
5.4.310.0040.04916.26
5.4.300.0100.04016.17
5.4.290.0080.04216.13
5.4.280.0080.04616.20
5.4.270.0100.03716.14
5.4.260.0100.04116.18
5.4.250.0030.04516.07
5.4.240.0080.04116.18
5.4.230.0100.04016.14
5.4.220.0110.03816.18
5.4.210.0050.04516.16
5.4.200.0070.02516.08
5.4.190.0080.05116.18
5.4.180.0090.03716.18
5.4.170.0080.03216.13
5.4.160.0050.04616.12
5.4.150.0080.04216.09
5.4.140.0050.04114.83
5.4.130.0070.03914.91
5.4.120.0080.02714.88
5.4.110.0050.03014.83
5.4.100.0080.03214.77
5.4.90.0050.04314.84
5.4.80.0030.03514.87
5.4.70.0070.02714.90
5.4.60.0050.04214.73
5.4.50.0090.03414.75
5.4.40.0020.04814.89
5.4.30.0050.04214.87
5.4.20.0050.03414.70
5.4.10.0060.02314.70
5.4.00.0050.02914.60
5.3.290.0050.05014.04
5.3.280.0070.03114.09
5.3.270.0050.03113.94
5.3.260.0080.04314.01
5.3.250.0030.04314.02
5.3.240.0060.03314.08
5.3.230.0080.03314.01
5.3.220.0040.03913.96
5.3.210.0070.04014.02
5.3.200.0050.04513.95
5.3.190.0050.04614.03
5.3.180.0090.03713.96
5.3.170.0080.01814.03
5.3.160.0050.04213.99
5.3.150.0070.04513.98
5.3.140.0130.03613.98
5.3.130.0060.04513.99
5.3.120.0070.04214.01
5.3.110.0060.04214.02
5.3.100.0080.03613.77
5.3.90.0050.04313.67
5.3.80.0050.04013.76
5.3.70.0030.04213.67
5.3.60.0060.03913.70
5.3.50.0050.04013.68
5.3.40.0050.04013.68
5.3.30.0030.04313.71
5.3.20.0030.04513.52
5.3.10.0150.03313.60
5.3.00.0050.04513.50
5.2.170.0070.05311.90
5.2.160.0030.06711.90
5.2.150.0000.03711.90
5.2.140.0000.03311.90
5.2.130.0000.06311.90
5.2.120.0070.04011.90
5.2.110.0030.04011.90
5.2.100.0130.05011.90
5.2.90.0070.06011.90
5.2.80.0070.06011.90
5.2.70.0000.06711.90
5.2.60.0070.04711.90
5.2.50.0030.04711.90
5.2.40.0100.05711.90
5.2.30.0030.05311.90
5.2.20.0030.06011.90
5.2.10.0100.03711.90
5.2.00.0030.03711.90
5.1.60.0030.03011.90
5.1.50.0030.06011.90
5.1.40.0030.05011.90
5.1.30.0030.06011.90
5.1.20.0030.05711.90
5.1.10.0070.05011.90
5.1.00.0070.05311.90
5.0.50.0030.03711.90
5.0.40.0000.05011.90
5.0.30.0100.06311.90
5.0.20.0070.04011.90
5.0.10.0070.02011.90
5.0.00.0000.06311.90
4.4.90.0100.02711.90
4.4.80.0030.03311.90
4.4.70.0070.03311.90
4.4.60.0100.02711.90
4.4.50.0030.03711.90
4.4.40.0070.05711.90
4.4.30.0000.02711.90
4.4.20.0000.03311.90
4.4.10.0070.03011.90
4.4.00.0000.05711.90
4.3.110.0070.03311.90
4.3.100.0030.03311.90
4.3.90.0000.03711.90
4.3.80.0000.05711.90
4.3.70.0000.03711.90
4.3.60.0000.03011.90
4.3.50.0030.03311.90
4.3.40.0030.05011.90
4.3.30.0070.03011.90
4.3.20.0030.02311.90
4.3.10.0000.02311.90
4.3.00.0000.03711.90

preferences:
39.03 ms | 400 KiB | 5 Q