3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace f; function test() { test2(); } function test2() { print_r(getnext(debug_backtrace(0))); } function getnext($a) { return current(array_slice($a, 1, 1, true)); } for ($i = 0; $i <= 5000; $i++) { test(); }

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.0140.00618.43
8.3.50.0100.00421.97
8.3.40.0100.00318.59
8.3.30.0030.01018.96
8.3.20.0050.00220.29
8.3.10.0080.00022.11
8.3.00.0000.00722.34
8.2.180.0100.00718.04
8.2.170.0030.01022.96
8.2.160.0070.00719.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0000.00819.24
8.2.110.0030.00620.89
8.2.100.0040.00817.72
8.2.90.0000.00718.93
8.2.80.0000.00917.97
8.2.70.0050.00317.50
8.2.60.0000.00917.80
8.2.50.0000.00818.10
8.2.40.0040.00419.89
8.2.30.0040.00418.13
8.2.20.0040.00417.67
8.2.10.0000.00717.71
8.2.00.0040.00417.66
8.1.280.0100.00325.92
8.1.270.0040.00422.04
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0110.00019.37
8.1.230.0000.01017.82
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0080.00017.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0070.00018.65
8.1.160.0000.00821.89
8.1.150.0050.00318.70
8.1.140.0000.00817.47
8.1.130.0000.00717.91
8.1.120.0040.00417.50
8.1.110.0040.00417.43
8.1.100.0040.00417.44
8.1.90.0070.00017.42
8.1.80.0030.00317.53
8.1.70.0030.00317.46
8.1.60.0040.00417.67
8.1.50.0030.00317.62
8.1.40.0000.00817.60
8.1.30.0000.00717.56
8.1.20.0040.00417.70
8.1.10.0000.00717.45
8.1.00.0000.00817.44
8.0.300.0000.00718.77
8.0.290.0050.00316.58
8.0.280.0070.00018.33
8.0.270.0000.00717.18
8.0.260.0030.00316.79
8.0.250.0040.00416.80
8.0.240.0000.00716.69
8.0.230.0000.00716.75
8.0.220.0030.00316.77
8.0.210.0030.00316.63
8.0.200.0030.00316.77
8.0.190.0050.00316.74
8.0.180.0050.00216.74
8.0.170.0050.00216.77
8.0.160.0070.00016.74
8.0.150.0060.00316.59
8.0.140.0000.00716.77
8.0.130.0000.00513.19
8.0.120.0070.00016.74
8.0.110.0000.00716.68
8.0.100.0000.00716.60
8.0.90.0000.00716.77
8.0.80.0000.01716.76
8.0.70.0000.00816.82
8.0.60.0000.00816.80
8.0.50.0040.00416.71
8.0.30.0110.00916.89
8.0.20.0080.01117.40
8.0.10.0030.00316.96
8.0.00.0140.00616.49
7.4.330.0000.00615.00
7.4.320.0030.00316.41
7.4.300.0030.00316.40
7.4.290.0030.00616.49
7.4.280.0090.00016.51
7.4.270.0040.00416.41
7.4.260.0070.00016.42
7.4.250.0000.00716.33
7.4.240.0040.00316.47
7.4.230.0040.00416.55
7.4.220.0150.00416.59
7.4.210.0070.00716.43
7.4.200.0000.00716.46
7.4.190.0040.00416.60
7.4.160.0100.01016.36
7.4.150.0070.01417.40
7.4.140.0170.00817.86
7.4.130.0120.00916.46
7.4.120.0100.01116.41
7.4.110.0070.01816.35
7.4.100.0150.01116.55
7.4.90.0140.00816.41
7.4.80.0110.00619.39
7.4.70.0100.01016.22
7.4.60.0110.00816.23
7.4.50.0040.00416.12
7.4.40.0110.00422.77
7.4.30.0110.00816.25
7.4.00.0070.00714.74
7.3.330.0000.00513.25
7.3.320.0000.00513.32
7.3.310.0040.00216.13
7.3.300.0040.00416.18
7.3.290.0120.00616.13
7.3.280.0090.00916.19
7.3.270.0110.00717.40
7.3.260.0080.01116.64
7.3.250.0140.00716.42
7.3.240.0140.00316.43
7.3.230.0130.00516.39
7.3.210.0150.00916.40
7.3.200.0170.01019.39
7.3.190.0230.00016.20
7.3.180.0070.01016.37
7.3.170.0050.01016.34
7.3.160.0090.01016.40
7.3.120.0110.00714.62
7.3.10.0070.00716.67
7.3.00.0070.00716.64
7.2.330.0120.00816.71
7.2.320.0100.00916.62
7.2.310.0090.00816.40
7.2.300.0100.00616.71
7.2.290.0100.00716.67
7.2.130.0100.00716.64
7.2.120.0060.00916.61
7.2.110.0000.01216.71
7.2.100.0080.00416.94
7.2.90.0070.01016.59
7.2.80.0090.00616.89
7.2.70.0040.01116.98
7.2.60.0100.00016.80
7.2.50.0080.00816.90
7.2.40.0120.00617.04
7.2.30.0040.00716.96
7.2.20.0060.00916.68
7.2.10.0030.01016.79
7.2.00.0010.01318.04
7.1.250.0080.00315.75
7.1.100.0030.00917.79
7.1.70.0000.01017.02
7.1.60.0070.01119.82
7.1.50.0040.00817.24
7.0.200.0140.01016.66

preferences:
40.57 ms | 401 KiB | 5 Q