3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($depth = 0) { if($depth === 1000) { return array_slice(array_filter(array_slice(debug_backtrace(false), 0, 3)), -1, 1); } return a(++$depth, str_repeat("a", 1000)); } var_dump(a());

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.0110.01120.24
8.3.50.0080.01022.97
8.3.40.0140.00420.54
8.3.30.0130.00320.92
8.3.20.0060.00322.21
8.3.10.0080.00024.12
8.3.00.0040.00424.33
8.2.180.0110.00718.13
8.2.170.0100.01022.96
8.2.160.0090.00623.04
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00421.34
8.2.110.0030.00722.32
8.2.100.0080.00419.78
8.2.90.0030.00620.97
8.2.80.0040.00419.80
8.2.70.0090.00019.25
8.2.60.0060.00319.67
8.2.50.0030.00619.50
8.2.40.0100.00019.87
8.2.30.0000.00819.75
8.2.20.0060.00319.35
8.2.10.0040.00421.18
8.2.00.0060.00319.38
8.1.280.0100.01025.92
8.1.270.0030.00724.12
8.1.260.0090.00026.35
8.1.250.0090.00028.09
8.1.240.0040.00825.92
8.1.230.0030.01023.05
8.1.220.0030.00619.65
8.1.210.0040.00419.23
8.1.200.0040.00819.34
8.1.190.0100.00019.41
8.1.180.0000.01020.64
8.1.170.0000.00920.63
8.1.160.0040.00424.03
8.1.150.0060.00320.59
8.1.140.0040.00419.26
8.1.130.0050.00319.73
8.1.120.0040.00419.41
8.1.110.0060.00319.21
8.1.100.0000.00819.40
8.1.90.0000.00919.34
8.1.80.0050.00319.19
8.1.70.0040.00419.30
8.1.60.0000.00919.54
8.1.50.0000.00919.45
8.1.40.0030.00619.48
8.1.30.0060.00319.40
8.1.20.0060.00319.54
8.1.10.0000.00819.47
8.1.00.0050.00519.28
8.0.300.0090.00018.97
8.0.290.0040.00419.28
8.0.280.0030.00520.20
8.0.270.0000.00919.12
8.0.260.0030.00618.70
8.0.250.0030.00518.71
8.0.240.0060.00318.57
8.0.230.0030.00618.63
8.0.220.0080.00018.66
8.0.210.0040.00418.61
8.0.200.0050.00318.68
8.0.190.0030.00818.60
8.0.180.0000.00918.64
8.0.170.0030.00618.54
8.0.160.0060.00318.63
8.0.150.0040.00418.63
8.0.140.0080.00018.66
8.0.130.0030.00315.13
8.0.120.0000.00918.58
8.0.110.0050.00318.56
8.0.100.0050.00318.61
8.0.90.0030.00618.53
8.0.80.0110.00818.54
8.0.70.0000.00918.62
8.0.60.0060.00318.50
8.0.50.0060.00318.55
8.0.30.0170.00918.67
8.0.20.0150.00618.86
8.0.10.0040.00418.75
8.0.00.0170.01218.63
7.4.330.0050.00015.35
7.4.320.0070.00018.38
7.4.300.0000.00818.36
7.4.290.0050.00318.37
7.4.280.0060.00318.15
7.4.270.0040.00418.41
7.4.260.0030.00518.34
7.4.250.0080.00018.25
7.4.240.0020.00618.17
7.4.230.0050.00318.30
7.4.220.0100.01718.25
7.4.210.0140.00418.44
7.4.200.0040.00418.35
7.4.190.0050.00518.16
7.4.160.0110.00718.33
7.4.150.0130.00718.41
7.4.140.0090.01218.28
7.4.130.0100.01018.32
7.4.120.0120.00918.25
7.4.110.0140.00718.20
7.4.100.0130.01018.37
7.4.90.0100.01018.36
7.4.80.0120.01519.39
7.4.70.0130.00718.34
7.4.60.0130.00718.26
7.4.50.0060.00318.40
7.4.40.0090.00622.77
7.4.30.0060.01218.38
7.4.00.0120.00616.50
7.3.330.0030.00315.09
7.3.320.0000.00615.20
7.3.310.0000.00918.09
7.3.300.0030.00518.14
7.3.290.0100.01318.14
7.3.280.0080.00918.19
7.3.270.0140.00618.49
7.3.260.0030.01718.17
7.3.250.0140.00818.35
7.3.240.0130.00618.23
7.3.230.0070.01418.23
7.3.210.0070.01318.04
7.3.200.0120.00619.39
7.3.190.0210.00618.29
7.3.180.0100.01018.09
7.3.170.0110.00718.19
7.3.160.0160.00318.21
7.3.120.0060.01216.61
7.3.10.0090.00618.63
7.3.00.0120.00318.30
7.2.330.0140.00718.60
7.2.320.0100.01018.65
7.2.310.0130.01318.32
7.2.300.0100.01018.46
7.2.290.0040.01618.50
7.2.130.0030.00619.04
7.2.120.0060.00918.82
7.2.110.0060.00618.49
7.2.100.0040.01118.77
7.2.90.0130.00318.61
7.2.80.0120.00318.91
7.2.70.0000.01618.88
7.2.60.0050.01118.64
7.2.50.0000.01618.67
7.2.40.0030.00918.65
7.2.30.0070.01018.58
7.2.20.0060.00918.95
7.2.10.0120.00318.88
7.2.00.0060.01019.97
7.1.250.0000.01417.65
7.1.200.0030.00917.50
7.1.100.0080.00820.15
7.1.70.0000.01119.18
7.1.60.0080.00419.82
7.1.50.0100.00318.93
7.1.00.0100.07324.19
7.0.200.0030.00618.85
7.0.140.0030.07324.01
7.0.70.0130.07322.20
7.0.60.0130.06022.17
7.0.50.0170.07322.62
7.0.40.0100.06320.09
7.0.30.0070.05020.13
7.0.20.0030.08720.13
7.0.10.0070.07020.02
7.0.00.0070.08720.04
5.6.280.0000.08023.62
5.6.220.0130.06723.36
5.6.210.0070.05323.48
5.6.200.0070.08024.01
5.6.190.0070.07023.91
5.6.180.0070.07323.87
5.6.170.0070.08023.79
5.6.160.0100.06323.79
5.6.150.0100.08323.85
5.6.140.0070.08023.85
5.6.130.0030.06023.77
5.6.120.0130.07323.89
5.6.110.0170.07323.79
5.6.100.0070.09023.87
5.6.90.0070.08724.00
5.6.80.0030.06023.30
5.6.70.0170.07723.18
5.6.60.0070.07323.25
5.6.50.0070.08723.18
5.6.40.0070.08323.13
5.6.30.0030.08723.22
5.6.20.0130.07023.14
5.6.10.0100.04723.15
5.6.00.0000.06323.13
5.5.360.0100.07723.18
5.5.350.0070.04723.26
5.5.340.0100.07323.60
5.5.330.0030.08723.48
5.5.320.0100.08323.77
5.5.310.0070.06323.72
5.5.300.0070.08323.76
5.5.290.0000.09323.73
5.5.280.0000.07323.73
5.5.270.0170.08023.72
5.5.260.0170.03723.58
5.5.250.0030.08023.53
5.5.240.0030.08723.11
5.5.230.0170.07723.00
5.5.220.0130.07323.09
5.5.210.0100.07022.97
5.5.200.0070.07322.96
5.5.190.0100.08322.91
5.5.180.0070.08323.11
5.5.160.0030.04722.99
5.5.150.0000.05723.02
5.5.140.0030.08722.94
5.5.130.0030.08023.10
5.5.120.0100.05022.98
5.5.110.0030.04023.07
5.5.100.0030.07022.82
5.5.90.0070.05322.89
5.5.80.0000.07022.93
5.5.70.0100.08022.90
5.5.60.0000.06022.94
5.5.50.0000.09022.86
5.5.40.0100.07322.98
5.5.30.0100.07722.93
5.5.20.0030.06722.94
5.5.10.0070.07322.86
5.5.00.0030.05322.88
5.4.450.0130.07021.93
5.4.440.0130.06021.88
5.4.430.0070.04321.73
5.4.420.0130.07021.80
5.4.410.0070.06321.73
5.4.400.0030.05721.50
5.4.390.0100.07321.55
5.4.380.0000.08321.55
5.4.370.0070.08021.57
5.4.360.0100.06321.54
5.4.350.0030.08021.54
5.4.340.0070.04321.40
5.4.320.0070.05321.40
5.4.310.0030.05721.52
5.4.300.0230.07021.53
5.4.290.0070.08021.54
5.4.280.0000.08021.60
5.4.270.0030.08321.34
5.4.260.0100.05321.60
5.4.250.0070.08321.68
5.4.240.0100.07721.49
5.4.230.0070.08021.53
5.4.220.0100.07321.62
5.4.210.0030.08021.55
5.4.200.0000.05021.39
5.4.190.0030.08321.70
5.4.180.0100.06721.71
5.4.170.0030.08721.61
5.4.160.0100.07721.36
5.4.150.0100.05721.58
5.4.140.0070.08018.90
5.4.130.0000.07718.95
5.4.120.0100.07318.93
5.4.110.0100.07318.85
5.4.100.0100.07019.02
5.4.90.0130.04018.85
5.4.80.0070.04718.89
5.4.70.0030.03718.83
5.4.60.0070.04018.95
5.4.50.0000.08018.86
5.4.40.0070.07719.03
5.4.30.0130.05719.02
5.4.20.0130.05718.95
5.4.10.0030.07718.91
5.4.00.0070.04718.40
5.3.290.0130.04317.30
5.3.280.0030.07017.32
5.3.270.0030.07317.33
5.3.260.0070.06717.40
5.3.250.0030.06017.34
5.3.240.0070.08017.29
5.3.230.0070.06717.27
5.3.220.0070.07017.30
5.3.210.0070.07717.17
5.3.200.0070.06317.20
5.3.190.0100.07017.34
5.3.180.0000.06017.19
5.3.170.0030.04317.20
5.3.160.0030.06717.16
5.3.150.0030.08017.16
5.3.140.0070.07317.21
5.3.130.0070.06717.27
5.3.120.0030.08317.22
5.3.110.0030.05017.19
5.3.100.0100.06716.36
5.3.90.0000.05316.35
5.3.80.0070.08016.29
5.3.70.0070.04316.28
5.3.60.0030.06316.32
5.3.50.0100.07016.26
5.3.40.0070.07716.33
5.3.30.0100.07316.51
5.3.20.0130.05016.40
5.3.10.0000.08016.09
5.3.00.0000.07015.87
5.2.170.0070.06314.27
5.2.160.0100.06014.26
5.2.150.0070.06714.20
5.2.140.0030.06714.12
5.2.130.0070.07314.24
5.2.120.0070.06014.29
5.2.110.0000.07014.23
5.2.100.0000.06714.21
5.2.90.0070.05014.14
5.2.80.0030.04714.20
5.2.70.0030.05014.18
5.2.60.0030.04714.16
5.2.50.0130.06014.14
5.2.40.0000.04312.74
5.2.30.0070.05012.76
5.2.20.0100.05312.78
5.2.10.0100.05712.77
5.2.00.0030.06312.51
5.1.60.0030.05312.05
5.1.50.0070.04012.27
5.1.40.0000.06012.01
5.1.30.0030.05712.38
5.1.20.0000.06312.59
5.1.10.0100.04312.28
5.1.00.0000.06012.39
5.0.50.0000.05011.50
5.0.40.0100.04311.50
5.0.30.0100.05311.50
5.0.20.0030.04311.50
5.0.10.0030.04011.50
5.0.00.0000.07311.50
4.4.90.0030.03311.50
4.4.80.0030.02311.50
4.4.70.0000.02711.50
4.4.60.0030.02711.50
4.4.50.0070.03311.50
4.4.40.0030.05711.50
4.4.30.0000.04011.50
4.4.20.0070.03711.50
4.4.10.0000.04011.50
4.4.00.0030.05011.50
4.3.110.0100.03011.50
4.3.100.0000.04011.50
4.3.90.0000.04011.50
4.3.80.0030.05711.50
4.3.70.0030.03711.50
4.3.60.0070.02711.50
4.3.50.0000.02311.50
4.3.40.0030.05711.50
4.3.30.0030.03711.50
4.3.20.0030.03311.50
4.3.10.0030.03711.50
4.3.00.0000.03711.50

preferences:
34.87 ms | 401 KiB | 5 Q