3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Bob { function test(SplStack $stack): Iterator { return new ArrayIterator([1, 2, 3]); } test(new SplStack()); }

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.4.130.0100.01018.81
8.4.120.0130.00420.56
8.4.110.0110.00818.59
8.4.100.0130.00717.69
8.4.90.0090.01020.39
8.4.80.0040.00718.80
8.4.70.0070.01218.86
8.4.60.0130.00822.29
8.4.50.0130.00718.61
8.4.40.0140.00717.62
8.4.30.0030.01220.48
8.4.20.0120.00919.43
8.4.10.0040.00420.64
8.3.260.0040.00616.66
8.3.250.0080.01216.48
8.3.240.0140.00416.54
8.3.230.0100.00716.75
8.3.220.0100.00818.74
8.3.210.0070.01116.56
8.3.200.0120.00616.60
8.3.190.0090.00616.55
8.3.180.0120.00719.06
8.3.170.0060.01216.84
8.3.160.0070.01118.73
8.3.150.0110.00816.54
8.3.140.0070.01116.77
8.3.130.0040.00418.73
8.3.120.0030.00618.84
8.3.110.0040.00420.94
8.3.100.0000.00818.41
8.3.90.0060.00916.61
8.3.80.0040.00719.36
8.3.70.0110.00718.31
8.3.60.0140.00718.55
8.3.50.0120.00823.65
8.3.40.0130.00321.86
8.3.30.0180.00018.71
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0030.00626.16
8.2.290.0160.00316.97
8.2.280.0120.00718.61
8.2.270.0130.00616.42
8.2.260.0000.00817.14
8.2.250.0040.00416.94
8.2.240.0030.00618.66
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0150.00026.77
8.2.200.0030.00618.54
8.2.190.0120.00318.54
8.2.180.0070.00725.92
8.2.170.0090.00918.93
8.2.160.0110.00422.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00226.35
8.2.110.0140.00322.26
8.2.100.0060.00617.84
8.2.90.0000.00817.77
8.2.80.0050.00319.22
8.2.70.0000.00817.50
8.2.60.0080.00017.63
8.2.50.0070.00318.05
8.2.40.0050.00318.22
8.2.30.0000.00817.86
8.2.20.0040.00418.04
8.2.10.0020.00519.11
8.2.00.0040.00419.18
8.1.330.0120.00816.02
8.1.320.0090.01316.13
8.1.310.0100.00716.67
8.1.300.0090.00018.04
8.1.290.0050.00518.88
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00622.53
8.1.230.0110.00020.99
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.10
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0000.00818.46
8.1.160.0070.00018.76
8.1.150.0040.00418.66
8.1.140.0030.00318.62
8.1.130.0000.00717.36
8.1.120.0070.00317.21
8.1.110.0070.00017.14
8.1.100.0000.00717.33
8.1.90.0000.00717.32
8.1.80.0000.00817.15
8.1.70.0000.00717.32
8.1.60.0080.00017.48
8.1.50.0040.00417.35
8.1.40.0110.00017.47
8.1.30.0060.00317.47
8.1.20.0090.00017.59
8.1.10.0040.00417.54
8.1.00.0030.00517.43
8.0.300.0040.00420.09
8.0.290.0080.00316.75
8.0.280.0070.00018.44
8.0.270.0050.00317.99
8.0.260.0040.00416.80
8.0.250.0030.00316.89
8.0.240.0000.00716.83
8.0.230.0040.00416.93
8.0.220.0040.00416.77
8.0.210.0000.00716.86
8.0.200.0040.00416.85
8.0.190.0070.00016.95
8.0.180.0070.00016.87
8.0.170.0040.00416.95
8.0.160.0000.00816.88
8.0.150.0000.00716.82
8.0.140.0000.00716.72
8.0.130.0050.00013.27
8.0.120.0000.00816.79
8.0.110.0000.00716.74
8.0.100.0000.00716.76
8.0.90.0030.00516.84
8.0.80.0060.01216.84
8.0.70.0000.00716.82
8.0.60.0080.00016.82
8.0.50.0000.00716.87
8.0.30.0100.00717.13
8.0.20.0130.00516.88
8.0.10.0000.00716.97
8.0.00.0070.01116.93
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0070.00016.50
7.4.290.0050.00516.53
7.4.280.0040.00416.39
7.4.270.0070.00016.57
7.4.260.0060.00013.26
7.4.250.0030.00316.47
7.4.240.0000.00816.32
7.4.230.0030.00316.43
7.4.220.0020.00516.38
7.4.210.0070.00816.46
7.4.200.0070.00016.27
7.4.130.0040.01816.54
7.4.120.0070.01016.49
7.4.110.0060.01316.35
7.4.100.0160.00016.18
7.4.90.0070.01016.41
7.4.80.0180.00616.16
7.4.70.0110.00616.37
7.4.60.0090.00916.29
7.4.50.0100.00716.58
7.4.40.0080.00816.02
7.4.30.0070.01016.21
7.4.20.0100.01016.43
7.4.10.0030.01616.27
7.4.00.0100.00716.32
7.3.330.0000.00716.17
7.3.320.0000.00613.29
7.3.310.0070.00016.45
7.3.300.0000.00616.28
7.3.290.0050.01016.27
7.3.260.0080.00916.27
7.3.230.0090.00616.55
7.3.220.0090.00916.61
7.3.210.0120.00416.37
7.3.200.0090.01516.31
7.3.190.0100.00716.50
7.3.180.0130.00316.44
7.3.170.0100.00616.17
7.3.160.0080.01216.46
7.3.150.0000.01616.45
7.3.140.0130.01016.28
7.3.130.0070.01016.34
7.3.120.0070.01116.28
7.3.110.0080.00816.34
7.3.100.0060.01216.43
7.3.90.0000.01616.20
7.3.80.0090.00616.29
7.3.70.0090.00916.39
7.3.60.0160.00616.35
7.3.50.0110.00516.31
7.3.40.0100.00716.18
7.3.30.0130.00416.34
7.3.20.0220.00616.25
7.3.10.0110.00716.43
7.3.00.0100.00716.46
7.2.340.0060.01016.38
7.2.330.0070.01116.47
7.2.320.0070.01616.50
7.2.310.0110.00716.50
7.2.300.0030.01716.64
7.2.290.0070.01116.55
7.2.280.0120.00616.09
7.2.270.0070.01016.40
7.2.260.0030.01416.29
7.2.250.0110.00616.64
7.2.240.0080.01116.15
7.2.230.0030.01216.63
7.2.220.0100.00716.19
7.2.210.0200.00316.47
7.2.200.0110.00616.33
7.2.190.0030.01416.41
7.2.180.0100.00716.25
7.2.170.0130.00316.33
7.2.160.0090.01216.41
7.2.150.0080.01116.43
7.2.140.0140.00516.37
7.2.130.0070.01116.40
7.2.120.0070.01116.45
7.2.110.0180.00416.41
7.2.100.0060.01216.39
7.2.90.0130.00716.43
7.2.80.0070.01116.55
7.2.70.0070.01016.38
7.2.60.0040.01516.39
7.2.50.0100.00716.49
7.2.40.0110.00816.35
7.2.30.0090.00916.46
7.2.20.0030.01416.52
7.2.10.0070.01116.52
7.2.00.0090.00916.33

preferences:
84.42 ms | 403 KiB | 5 Q