3v4l.org

run code in 300+ PHP versions simultaneously
<?php function MANGLE_SOMEHOW($trace) { foreach ($trace as $i => $frame) { if (isset($frame['args'])) { foreach ($frame['args'] as $arg_index => $arg_value) { // And here I was thinking this was a 'copy'??? $frame['args'][$arg_index] = $arg_value; } } } } class SomeClass { private $number; public function __construct($number) { $this->number = $number; } public function some_function() { try { throw new Exception(); } catch (Exception $e) { MANGLE_SOMEHOW($e->getTrace()); } } } $some_objects = [ new SomeClass(1), new SomeClass(2), new SomeClass(3), new SomeClass(4), ]; $func = function(SomeClass $x) { $x->some_function(); return $x; }; array_walk($some_objects, $func); var_dump($some_objects); $mangled_result = array_map($func, $some_objects); var_dump($mangled_result);

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.0120.00316.50
8.3.50.0050.01222.94
8.3.40.0040.01818.89
8.3.30.0100.01019.04
8.3.20.0140.00419.99
8.3.10.0040.00421.95
8.3.00.0040.00417.50
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0100.00320.49
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0040.00421.02
8.2.110.0030.00620.47
8.2.100.0040.00817.97
8.2.90.0060.00319.34
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0050.00318.05
8.2.50.0030.00518.07
8.2.40.0100.00018.16
8.2.30.0000.00818.01
8.2.20.0050.00317.89
8.2.10.0040.00418.02
8.2.00.0080.00017.82
8.1.280.0170.00725.92
8.1.270.0060.00323.86
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.77
8.1.230.0040.00722.75
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0090.00017.47
8.1.190.0090.00017.13
8.1.180.0000.00818.10
8.1.170.0080.00018.51
8.1.160.0000.00722.02
8.1.150.0040.00418.84
8.1.140.0000.00717.37
8.1.130.0030.00317.86
8.1.120.0040.00417.45
8.1.110.0080.00017.50
8.1.100.0000.00717.55
8.1.90.0030.00717.52
8.1.80.0000.00817.46
8.1.70.0000.00817.40
8.1.60.0040.00417.55
8.1.50.0030.00617.51
8.1.40.0070.00017.57
8.1.30.0040.00417.66
8.1.20.0030.00617.61
8.1.10.0040.00417.61
8.1.00.0040.00417.57
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00617.26
8.0.260.0070.00017.32
8.0.250.0030.00317.04
8.0.240.0030.00317.05
8.0.230.0000.00816.93
8.0.220.0070.00017.00
8.0.210.0040.00416.85
8.0.200.0000.00616.91
8.0.190.0030.00516.91
8.0.180.0000.00716.88
8.0.170.0000.00917.07
8.0.160.0030.00316.96
8.0.150.0070.00016.93
8.0.140.0000.00716.90
8.0.130.0000.00513.38
8.0.120.0040.00417.00
8.0.110.0060.00316.87
8.0.100.0000.00716.99
8.0.90.0050.00317.03
8.0.80.0150.00316.88
8.0.70.0040.00416.84
8.0.60.0040.00417.00
8.0.50.0040.00416.91
8.0.30.0170.00717.13
8.0.20.0140.00717.40
8.0.10.0000.00716.96
8.0.00.0100.00816.73
7.4.330.0000.00515.14
7.4.320.0060.00016.55
7.4.300.0060.00316.50
7.4.290.0030.00316.52
7.4.280.0090.00016.41
7.4.270.0030.00316.44
7.4.260.0030.00616.63
7.4.250.0000.00916.41
7.4.240.0020.00516.62
7.4.230.0040.00416.40
7.4.220.0120.00616.57
7.4.210.0060.01316.65
7.4.200.0040.00416.42
7.4.160.0120.00916.47
7.4.150.0060.01217.40
7.4.140.0160.00617.86
7.4.130.0060.01216.51
7.4.120.0120.00516.62
7.4.110.0130.01016.63
7.4.100.0070.01116.50
7.4.90.0070.01016.74
7.4.80.0110.00719.39
7.4.70.0060.01216.61
7.4.60.0110.00616.40
7.4.50.0000.00516.40
7.4.40.0070.01016.51
7.4.30.0070.01016.74
7.4.00.0080.00315.24
7.3.330.0070.00013.51
7.3.320.0030.00313.15
7.3.310.0000.00716.46
7.3.300.0000.00716.52
7.3.290.0090.00616.43
7.3.280.0140.00416.44
7.3.270.0080.01117.40
7.3.260.0090.00916.49
7.3.240.0090.01216.38
7.3.230.0100.00716.51
7.3.210.0120.01216.36
7.3.200.0120.00619.39
7.3.190.0100.00716.47
7.3.180.0040.01416.41
7.3.170.0070.01016.68
7.3.160.0130.00316.38
7.3.120.0070.01014.87
7.3.110.0000.01514.89
7.3.100.0030.01014.90
7.3.90.0030.00714.65
7.3.80.0060.00914.97
7.3.70.0130.00315.03
7.3.60.0060.00914.93
7.3.50.0070.01014.96
7.3.40.0040.00714.71
7.3.30.0060.00614.97
7.3.20.0070.01016.63
7.3.10.0070.00716.76
7.3.00.0060.00916.73
7.2.330.0140.00316.59
7.2.320.0140.00716.72
7.2.310.0110.00616.83
7.2.300.0100.00716.75
7.2.290.0060.01216.41
7.2.240.0060.00915.16
7.2.230.0000.01315.05
7.2.220.0060.00915.38
7.2.210.0080.00815.23
7.2.200.0040.01514.87
7.2.190.0000.01015.21
7.2.180.0000.01315.17
7.2.170.0110.00714.96
7.2.160.0000.01215.08
7.2.150.0030.00816.95
7.2.140.0090.00317.14
7.2.130.0060.00916.99
7.2.120.0060.00916.93
7.2.110.0030.01217.14
7.2.100.0090.00616.94
7.2.90.0040.01117.19
7.2.80.0060.00617.14
7.2.70.0040.01516.92
7.2.60.0020.01416.78
7.2.50.0040.01116.82
7.2.40.0060.01016.94
7.2.30.0060.00617.04
7.2.20.0070.01016.99
7.2.10.0070.00716.76
7.2.00.0130.00318.06
7.1.330.0070.00715.84
7.1.320.0070.00715.96
7.1.310.0000.01515.93
7.1.300.0000.01515.95
7.1.290.0070.00715.52
7.1.280.0070.01015.77
7.1.270.0120.00315.77
7.1.260.0030.01015.46
7.1.250.0030.00715.87
7.1.200.0060.00615.47
7.1.100.0000.00918.02
7.1.70.0030.00616.89
7.1.60.0140.01019.40
7.1.50.0100.01316.77
7.1.00.0070.07322.45
7.0.200.0030.00316.80
7.0.140.0070.06722.04
7.0.60.0100.06020.05
7.0.50.0030.07017.87
7.0.40.0030.04720.04
7.0.30.0300.05020.12
7.0.20.0330.08320.23
7.0.10.0030.04720.25
7.0.00.0030.05020.08
5.6.280.0030.07721.10
5.6.210.0070.08020.51
5.6.200.0030.08718.19
5.6.190.0130.06720.49
5.6.180.0230.04320.63
5.6.170.0300.06720.47
5.6.160.0100.05320.46
5.6.150.0070.04018.27
5.6.140.0130.04018.15
5.6.130.0070.03718.27
5.6.120.0100.08721.04
5.6.110.0070.08721.01
5.6.100.0070.08021.00
5.6.90.0100.03321.11
5.6.80.0030.06320.54
5.5.350.0200.06320.50
5.5.340.0100.07017.95
5.5.330.0170.07720.49
5.5.320.3170.04720.30
5.5.310.0300.07720.30
5.5.300.0030.07717.98
5.5.290.0100.08318.09
5.5.280.0030.06320.89
5.5.270.0170.07320.73
5.5.260.0170.07320.85
5.5.250.0070.03720.47
5.5.240.0030.05020.20
5.4.450.0370.05319.20
5.4.440.0670.05719.21
5.4.430.0100.05319.39
5.4.420.0100.07719.45
5.4.410.0100.05719.02
5.4.400.0170.06018.55
5.4.390.0070.06018.73
5.4.380.0030.06318.75
5.4.370.0070.05318.72
5.4.360.0100.05018.63
5.4.350.0100.04412.03
5.4.340.0120.04512.02
5.4.320.0050.03712.52
5.4.310.0070.04412.51
5.4.300.0070.04512.52
5.4.290.0090.05212.51
5.4.280.0040.04712.41
5.4.270.0060.03712.41
5.4.260.0040.04112.41
5.4.250.0060.04012.41
5.4.240.0050.03912.41
5.4.230.0050.03912.40
5.4.220.0070.03612.40
5.4.210.0080.03512.40
5.4.200.0080.03912.41
5.4.190.0070.03912.40
5.4.180.0100.03612.40
5.4.170.0040.05512.40
5.4.160.0060.05112.39
5.4.150.0100.05012.39
5.4.140.0100.05212.08
5.4.130.0150.06412.06
5.4.120.0060.05712.02
5.4.110.0110.05012.02
5.4.100.0090.05012.02
5.4.90.0130.04712.02
5.4.80.0090.05112.02
5.4.70.0100.04812.02
5.4.60.0150.06012.01
5.4.50.0100.04712.01
5.4.40.0140.05612.00
5.4.30.0060.05512.00
5.4.20.0120.05112.00
5.4.10.0140.04912.00
5.4.00.0100.06911.50
5.3.290.0060.05012.80
5.3.280.0060.04312.71
5.3.270.0090.04412.72
5.3.260.0070.03912.72
5.3.250.0150.05412.72
5.3.240.0140.05712.72
5.3.230.0120.05012.71
5.3.220.0120.05112.68
5.3.210.0060.05712.68
5.3.200.0060.05212.68
5.3.190.0090.05312.68
5.3.180.0060.05412.68
5.3.170.0100.05312.67
5.3.160.0080.05712.67
5.3.150.0110.05512.68
5.3.140.0090.05012.66
5.3.130.0130.04612.66
5.3.120.0110.04312.66
5.3.110.0050.04312.65
5.3.100.0080.05812.13
5.3.90.0080.06512.11
5.3.80.0090.05812.10
5.3.70.0120.05012.10
5.3.60.0140.04212.09
5.3.50.0040.04812.03
5.3.40.0080.04912.03
5.3.30.0070.04911.99
5.3.20.0070.04011.77
5.3.10.0060.05211.74
5.3.00.0090.06011.73
5.2.170.0070.0459.22
5.2.160.0050.0479.22
5.2.150.0060.0439.22
5.2.140.0070.0409.22
5.2.130.0100.0429.18
5.2.120.0070.0439.18
5.2.110.0080.0389.19
5.2.100.0090.0499.19
5.2.90.0090.0459.19
5.2.80.0050.0479.18
5.2.70.0090.0429.18
5.2.60.0070.0409.14
5.2.50.0060.0399.11
5.2.40.0030.0449.09
5.2.30.0040.0439.05
5.2.20.0070.0529.05
5.2.10.0070.0398.95
5.2.00.0080.0388.82
5.1.60.0100.0398.10
5.1.50.0050.0338.10
5.1.40.0070.0528.07
5.1.30.0040.0418.43
5.1.20.0050.0438.45
5.1.10.0100.0378.18
5.1.00.0080.0478.18
5.0.50.0110.0326.65
5.0.40.0050.0266.52
5.0.30.0050.0406.32
5.0.20.0030.0276.29
5.0.10.0050.0266.27
5.0.00.0030.0416.27
4.4.90.0050.0234.78
4.4.80.0050.0194.76
4.4.70.0030.0214.75
4.4.60.0040.0204.76
4.4.50.0080.0174.77
4.4.40.0040.0364.71
4.4.30.0050.0194.76
4.4.20.0050.0264.85
4.4.10.0050.0224.85
4.4.00.0040.0334.76
4.3.110.0060.0214.67
4.3.100.0050.0164.66
4.3.90.0030.0224.64
4.3.80.0010.0344.59
4.3.70.0040.0204.63
4.3.60.0020.0224.63
4.3.50.0020.0234.63
4.3.40.0020.0254.54
4.3.30.0020.0163.31
4.3.20.0040.0153.29
4.3.10.0030.0193.24
4.3.00.0000.0236.82

preferences:
53.91 ms | 401 KiB | 5 Q