3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max=100; function toto($arr=array()) { $arr[] = count($arr); if(count($arr) < 10) { $arr = toto($arr); } return $arr; } print_r(toto());

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.40.0110.01118.76
8.3.30.0090.00618.98
8.3.20.0070.00020.39
8.3.10.0040.00423.43
8.3.00.0050.00319.79
8.2.170.0120.00622.96
8.2.160.0030.01620.43
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0180.00020.54
8.2.110.0040.00422.26
8.2.100.0000.01219.95
8.2.90.0000.00818.98
8.2.80.0050.00317.97
8.2.70.0000.00817.46
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0070.00018.04
8.2.20.0000.00717.72
8.2.10.0000.00818.16
8.2.00.0040.00417.67
8.1.270.0090.00023.82
8.1.260.0080.00026.35
8.1.250.0040.01128.09
8.1.240.0090.00023.77
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00617.35
8.1.190.0070.00717.30
8.1.180.0090.00018.57
8.1.170.0030.00518.46
8.1.160.0040.00422.05
8.1.150.0000.00718.87
8.1.140.0050.00217.36
8.1.130.0040.00417.75
8.1.120.0030.00617.49
8.1.110.0040.00417.33
8.1.100.0030.00517.31
8.1.90.0030.00417.43
8.1.80.0040.00417.38
8.1.70.0000.00917.41
8.1.60.0000.00817.56
8.1.50.0050.00317.51
8.1.40.0000.00717.44
8.1.30.0040.00417.50
8.1.20.0000.00717.57
8.1.10.0050.00217.38
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0030.00617.05
8.0.280.0030.00318.38
8.0.270.0030.00317.14
8.0.260.0030.00517.20
8.0.250.0030.00316.80
8.0.240.0030.00516.86
8.0.230.0070.00016.92
8.0.220.0030.00316.71
8.0.210.0000.00716.79
8.0.200.0000.00716.81
8.0.190.0070.00016.92
8.0.180.0080.00016.85
8.0.170.0040.00416.85
8.0.160.0040.00416.93
8.0.150.0040.00416.71
8.0.140.0000.00816.76
8.0.130.0060.00013.32
8.0.120.0040.00416.94
8.0.110.0000.00816.91
8.0.100.0040.00416.91
8.0.90.0000.00816.77
8.0.80.0090.00616.93
8.0.70.0000.00716.91
8.0.60.0040.00416.82
8.0.50.0040.00416.79
8.0.30.0100.00916.88
8.0.20.0110.00717.40
8.0.10.0040.00416.94
8.0.00.0100.00716.60
7.4.330.0020.00215.09
7.4.320.0030.00316.62
7.4.300.0060.00016.57
7.4.290.0030.00316.48
7.4.280.0000.00816.59
7.4.270.0030.00316.63
7.4.260.0000.00716.49
7.4.250.0050.00316.54
7.4.240.0020.00616.60
7.4.230.0040.00416.61
7.4.220.0070.01116.38
7.4.210.0160.00616.63
7.4.200.0070.00016.48
7.4.160.0060.00916.45
7.4.150.0000.02017.40
7.4.140.0090.01117.86
7.4.130.0080.01216.46
7.4.120.0070.01016.52
7.4.110.0120.00916.30
7.4.100.0100.00616.53
7.4.90.0090.01216.35
7.4.80.0090.00919.39
7.4.70.0120.00616.46
7.4.60.0100.00616.38
7.4.50.0030.00516.49
7.4.40.0080.00816.59
7.4.30.0030.01316.59
7.4.00.0060.00614.70
7.3.330.0000.00513.29
7.3.320.0000.00513.16
7.3.310.0030.00316.19
7.3.300.0030.00316.18
7.3.290.0070.01016.27
7.3.280.0110.00616.28
7.3.270.0160.00717.40
7.3.260.0070.01016.47
7.3.250.0090.00816.38
7.3.240.0100.00716.43
7.3.230.0100.00616.39
7.3.210.0030.01316.43
7.3.200.0070.01419.39
7.3.190.0000.01516.37
7.3.180.0100.01016.62
7.3.170.0100.00716.41
7.3.160.0100.01016.37
7.2.330.0130.01016.36
7.2.320.0040.01216.73
7.2.310.0090.00916.87
7.2.300.0110.00416.61
7.2.290.0030.01316.73
7.2.00.0030.01019.46
7.1.100.0040.00417.99
7.1.70.0060.00317.09
7.1.60.0090.01219.29
7.1.50.0130.00716.79
7.1.00.0030.07722.30
7.0.200.0100.00314.99
7.0.140.0070.06021.99
7.0.60.0170.07720.03
7.0.50.0030.05317.84
7.0.40.0200.03020.02
7.0.30.0330.07020.24
7.0.20.0330.07320.26
7.0.10.0030.07020.07
7.0.00.0000.04720.20
5.6.280.0070.06720.93
5.6.210.0200.05020.51
5.6.200.0070.05018.29
5.6.190.0030.05020.41
5.6.180.3830.04320.47
5.6.170.0230.06020.47
5.6.160.0100.04020.52
5.6.150.0030.04318.18
5.6.140.0070.07718.28
5.6.130.0030.05018.25
5.6.120.0100.05721.01
5.6.110.0030.04021.12
5.6.100.0100.07721.13
5.6.90.0130.07721.11
5.6.80.0030.08320.39
5.6.70.3630.03020.40
5.5.350.0070.03320.38
5.5.340.0030.04317.99
5.5.330.0000.08320.19
5.5.320.3870.04020.25
5.5.310.0130.04320.31
5.5.300.0100.06718.08
5.5.290.0070.07718.07
5.5.280.0000.04320.93
5.5.270.0000.06720.84
5.5.260.0200.07020.95
5.5.250.0070.05320.68
5.5.240.0270.07320.19
5.4.450.0200.07319.42
5.4.440.0230.06319.47
5.4.430.0270.07019.54
5.4.420.0300.06319.17
5.4.410.0200.08019.33
5.4.400.0270.07018.98
5.4.390.0200.05019.24
5.4.380.0230.05718.94
5.4.370.0300.04318.87
5.4.360.0270.06719.20
5.4.350.0270.07019.11
5.4.340.0170.08319.31
5.4.320.0270.06719.20
5.4.310.0200.03719.13
5.4.300.0200.05019.16
5.4.290.0230.06319.17
5.4.280.0270.05319.21
5.4.270.0130.08719.09
5.4.260.0270.04719.08
5.4.250.0130.06719.20
5.4.240.0330.06318.97
5.4.230.0300.07019.22
5.4.220.0300.05718.94
5.4.210.0330.06719.07
5.4.200.0200.05319.30
5.4.190.0170.04019.20
5.4.180.0230.05019.07
5.4.170.0200.06719.12
5.4.160.0230.04318.96
5.4.150.0230.04019.29
5.4.140.0200.06716.29
5.4.130.0230.03316.50
5.4.120.0100.04316.66
5.4.110.0200.04016.55
5.4.100.0170.03316.55
5.4.90.0200.03016.32
5.4.80.0100.04016.39
5.4.70.0200.06016.54
5.4.60.0230.07016.43
5.4.50.0130.03716.48
5.4.40.0230.06716.24
5.4.30.0100.08016.47
5.4.20.0270.05316.34
5.4.10.0200.07316.32
5.4.00.0070.07315.80
5.3.290.0300.06714.82
5.3.280.0170.07314.50
5.3.270.0300.06714.77
5.3.260.0270.04314.69
5.3.250.0200.07014.61
5.3.240.0130.05314.61
5.3.230.0100.05014.51
5.3.220.0170.07714.54
5.3.210.0200.05014.68
5.3.200.0200.04014.79
5.3.190.0130.08014.54
5.3.180.0130.06714.47
5.3.170.0130.03714.64
5.3.160.0170.04714.54
5.3.150.0200.03314.54
5.3.140.0130.03714.62
5.3.130.0200.04014.55
5.3.120.0170.04314.45
5.3.110.0170.08014.66
5.3.100.0170.04713.98
5.3.90.0230.06714.02
5.3.80.0130.05313.97
5.3.70.0230.06714.24
5.3.60.0270.06713.92
5.3.50.0230.06713.95
5.3.40.0200.07313.97
5.3.30.0330.06314.07
5.3.20.0200.06313.77
5.3.10.0230.06313.70
5.3.00.0200.06713.64
5.2.170.0230.04713.04
5.2.160.0170.06313.04
5.2.150.0230.05013.04
5.2.140.0270.03013.04
5.2.130.0230.03713.04
5.2.120.0170.06013.04
5.2.110.0330.02313.04
5.2.100.0170.05313.04
5.2.90.0200.05313.04
5.2.80.0170.05713.04
5.2.70.0170.06013.04
5.2.60.0200.05013.04
5.2.50.0170.05713.04
5.2.40.0170.05713.04
5.2.30.0130.05013.04
5.2.20.0170.03013.04
5.2.10.0130.03713.04
5.2.00.0170.03013.04
5.1.60.0170.04313.04
5.1.50.0200.04713.04
5.1.40.0170.04313.04
5.1.30.0130.03713.04
5.1.20.0130.04013.04
5.1.10.0170.05013.04
5.1.00.0070.05013.04
5.0.50.0100.04713.04
5.0.40.0130.03313.04
5.0.30.0100.05713.04
5.0.20.0100.02313.04
5.0.10.0130.02013.04
5.0.00.0100.03713.04
4.4.90.0030.04013.04
4.4.80.0070.03313.04
4.4.70.0030.01713.04
4.4.60.0070.01313.04
4.4.50.0030.03713.04
4.4.40.0030.03313.04
4.4.30.0070.03713.04
4.4.20.0030.02013.04
4.4.10.0030.02313.04
4.4.00.0170.02713.04
4.3.110.0100.02313.04
4.3.100.0100.02013.04
4.3.90.0100.02713.04
4.3.80.0100.05313.04
4.3.70.0100.02013.04
4.3.60.0130.01313.04
4.3.50.0030.02013.04
4.3.40.0130.03013.04
4.3.30.0100.03013.04
4.3.20.0030.04013.04
4.3.10.0030.03313.04
4.3.00.0030.03313.04

preferences:
53.86 ms | 400 KiB | 5 Q