3v4l.org

run code in 300+ PHP versions simultaneously
<?php function set_trace(\Throwable $e) { $reflection = new \ReflectionProperty( $e instanceof \Error ? \Error::class : \Exception::class, 'trace' ); $reflection->setAccessible(true); $reflection->setValue($e, \debug_backtrace()); return $e; } function deeper_stack(int $depth, callable $callback, ...$args) { return $depth > 1 ? deeper_stack($depth - 1, $callback, ...$args) : $callback(...$args); } echo deeper_stack(5, 'set_trace', new Error);

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.5.30.0090.00821.30
8.5.20.0100.00719.46
8.5.10.0140.00616.86
8.5.00.0100.01320.16
8.4.180.0150.00819.78
8.4.170.0110.01023.78
8.4.160.0100.01222.90
8.4.150.0070.00516.79
8.4.140.0100.01217.54
8.4.130.0100.01018.71
8.4.120.0120.00823.90
8.4.110.0120.00718.99
8.4.100.0020.00617.84
8.4.90.0100.01017.71
8.4.80.0130.00718.00
8.4.70.0070.00617.76
8.4.60.0100.00317.64
8.4.50.0080.00617.81
8.4.40.0040.00419.33
8.4.30.0100.01017.37
8.4.20.0120.00920.53
8.4.10.0060.00317.72
8.3.300.0150.00920.75
8.3.290.0120.00920.96
8.3.280.0120.00818.31
8.3.270.0100.00916.52
8.3.260.0100.00916.63
8.3.250.0100.00918.85
8.3.240.0110.00917.10
8.3.230.0150.00516.36
8.3.220.0110.00718.80
8.3.210.0080.00816.68
8.3.200.0100.00916.34
8.3.190.0060.00218.88
8.3.180.0080.01118.54
8.3.170.0090.00918.65
8.3.160.0110.00718.25
8.3.150.0070.01118.82
8.3.140.0110.00417.20
8.3.130.0080.00018.22
8.3.120.0120.00618.98
8.3.110.0040.00416.68
8.3.100.0060.00318.53
8.3.90.0100.01018.59
8.3.80.0100.00018.05
8.3.70.0000.01616.38
8.3.60.0120.00318.31
8.3.50.0100.00917.21
8.3.40.0090.00618.89
8.3.30.0070.00718.67
8.3.20.0080.00019.46
8.3.10.0040.00423.70
8.3.00.0040.00420.82
8.2.300.0100.01017.99
8.2.290.0120.00720.46
8.2.280.0120.00718.66
8.2.270.0120.00817.18
8.2.260.0090.00618.93
8.2.250.0090.00916.63
8.2.240.0090.00017.17
8.2.230.0040.00420.94
8.2.220.0100.00024.06
8.2.210.0030.01726.77
8.2.200.0060.00318.17
8.2.190.0080.01116.58
8.2.180.0140.00716.88
8.2.170.0140.00422.96
8.2.160.0030.01020.38
8.2.150.0030.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00418.03
8.2.120.0000.00826.35
8.2.110.0070.00321.11
8.2.100.0090.00317.66
8.2.90.0060.00317.91
8.2.80.0050.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00417.97
8.2.50.0050.00318.10
8.2.40.0000.00719.30
8.2.30.0040.00419.19
8.2.20.0040.00418.03
8.2.10.0050.00318.03
8.2.00.0000.00817.68
8.1.340.0110.01117.80
8.1.330.0110.00722.07
8.1.320.0130.00616.43
8.1.310.0000.00816.88
8.1.300.0070.00718.57
8.1.290.0080.00018.88
8.1.280.0140.00325.92
8.1.270.0050.00322.14
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.13
8.1.230.0000.01022.72
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0040.00417.40
8.1.180.0030.00518.10
8.1.170.0000.00818.38
8.1.160.0000.00718.72
8.1.150.0000.00718.84
8.1.140.0040.00422.27
8.1.130.0050.00320.30
8.1.120.0050.00217.41
8.1.110.0040.00417.38
8.1.100.0000.00717.46
8.1.90.0000.00717.32
8.1.80.0040.00417.31
8.1.70.0030.00317.45
8.1.60.0040.00417.59
8.1.50.0070.00017.53
8.1.40.0030.00517.50
8.1.30.0040.00417.73
8.1.20.0040.00417.56
8.1.10.0040.00417.63
8.1.00.0050.00217.42
8.0.300.0040.00420.04
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0070.00017.29
8.0.260.0030.00318.38
8.0.250.0000.00717.01
8.0.240.0000.00817.04
8.0.230.0070.00016.88
8.0.220.0090.00016.93
8.0.210.0070.00016.86
8.0.200.0060.00017.02
8.0.190.0040.00417.02
8.0.180.0040.00416.90
8.0.170.0040.00416.99
8.0.160.0030.00516.84
8.0.150.0040.00416.92
8.0.140.0000.00716.90
8.0.130.0000.00613.25
8.0.120.0060.00316.82
8.0.110.0040.00416.89
8.0.100.0000.00716.94
8.0.90.0000.00716.80
8.0.80.0060.01016.90
8.0.70.0030.00516.90
8.0.60.0070.00016.97
8.0.50.0040.00316.91
8.0.30.0080.01116.95
8.0.20.0180.00017.40
8.0.10.0020.00517.07
8.0.00.0120.00716.84
7.4.330.0020.00215.55
7.4.320.0030.00316.46
7.4.300.0040.00416.54
7.4.290.0040.00416.60
7.4.280.0080.00416.52
7.4.270.0080.00016.67
7.4.260.0000.00816.54
7.4.250.0060.00316.57
7.4.240.0070.00016.39
7.4.230.0080.00016.70
7.4.220.0030.00516.67
7.4.210.0100.00516.54
7.4.200.0000.00716.55
7.4.160.0090.00716.54
7.4.140.0110.00717.86
7.4.130.0100.01316.57
7.4.120.0120.00816.46
7.4.110.0060.01516.53
7.4.100.0070.01016.50
7.4.90.0110.00716.33
7.4.80.0090.01119.39
7.4.70.0070.01016.50
7.4.60.0090.01216.73
7.4.50.0100.00616.40
7.4.40.0060.01016.56
7.4.00.0040.00814.68
7.3.330.0030.00313.32
7.3.320.0030.00313.25
7.3.310.0000.00816.28
7.3.300.0000.00716.26
7.3.290.0000.00716.35
7.3.280.0070.00816.38
7.3.260.0100.00816.47
7.3.240.0090.00916.41
7.3.230.0060.01016.60
7.3.210.0080.00816.45
7.3.200.0000.02116.14
7.3.190.0040.01416.55
7.3.180.0130.00316.47
7.3.170.0120.00916.39
7.3.160.0030.01616.48
7.2.330.0100.00716.82
7.2.320.0060.01216.72
7.2.310.0130.00416.64
7.2.300.0090.01516.70
7.2.290.0130.00316.39
7.2.110.0310.00714.53
7.2.100.0190.00714.69
7.2.90.0190.00614.77
7.2.80.0170.01014.49
7.2.70.0140.01015.01
7.2.60.0160.01715.00
7.2.50.0190.01115.16
7.2.40.0160.00714.95
7.2.30.0170.00714.49
7.2.20.0290.01015.14
7.2.10.0260.00414.89
7.2.00.0200.01014.62
7.1.230.0210.00313.81
7.1.220.0220.00313.57
7.1.210.0180.00713.98
7.1.200.0190.00413.77
7.1.190.0150.00913.94
7.1.180.1220.00914.08
7.1.170.0140.00713.95
7.1.160.0190.00314.05
7.1.150.0270.00713.99
7.1.140.0200.01013.75
7.1.130.0160.00713.80
7.1.120.0260.01013.96
7.1.110.0250.01113.77
7.1.100.0240.00314.05
7.1.90.0170.01413.99
7.1.80.0240.00313.87
7.1.70.0240.00313.68
7.1.60.0360.01631.85
7.1.50.0290.01632.09
7.1.40.0370.00731.64
7.1.30.0340.01032.04
7.1.20.0370.01031.84
7.1.10.0310.00013.97
7.1.00.0230.00314.16
5.6.380.0040.01214.11

preferences:
46.32 ms | 1533 KiB | 5 Q