3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BlogCommentRepository { public function find($something) { echo "called!"; return array(1, 2, 3, 4, 5, 6, 7, 8); } } $blogCommentRepository = new BlogCommentRepository(); $blogCommentIds = array(1,2,3,4); foreach ($blogCommentRepository->find(explode(",", $blogCommentIds)) as $blogCommentId) { }

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.0040.01118.52
8.3.50.0110.00822.05
8.3.40.0170.00318.97
8.3.30.0030.01019.09
8.3.20.0040.00420.16
8.3.10.0050.00320.67
8.3.00.0080.00019.50
8.2.180.0100.01018.41
8.2.170.0150.00322.96
8.2.160.0080.00620.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00022.09
8.2.110.0000.00921.06
8.2.100.0090.00317.91
8.2.90.0030.00517.84
8.2.80.0040.00418.09
8.2.70.0080.00017.50
8.2.60.0030.00617.50
8.2.50.0080.00017.63
8.2.40.0040.00418.05
8.2.30.0050.00219.20
8.2.20.0000.00817.58
8.2.10.0030.00517.97
8.2.00.0040.00417.62
8.1.280.0060.00825.92
8.1.270.0000.00922.17
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0130.00022.14
8.1.230.0110.00022.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.22
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.83
8.1.160.0040.00421.99
8.1.150.0000.00718.81
8.1.140.0040.00417.30
8.1.130.0070.00017.86
8.1.120.0000.00717.38
8.1.110.0030.00517.29
8.1.100.0040.00417.42
8.1.90.0030.00717.22
8.1.80.0000.00817.30
8.1.70.0000.00717.35
8.1.60.0060.00317.59
8.1.50.0000.00817.57
8.1.40.0040.00417.53
8.1.30.0040.00417.46
8.1.20.0080.00017.61
8.1.10.0000.00817.47
8.1.00.0070.00017.47
8.0.300.0000.00719.85
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0070.00017.21
8.0.260.0000.00617.24
8.0.250.0070.00016.98
8.0.240.0000.00816.84
8.0.230.0070.00016.93
8.0.220.0030.00316.78
8.0.210.0040.00416.91
8.0.200.0030.00317.01
8.0.190.0000.00716.84
8.0.180.0070.00016.77
8.0.170.0040.00416.98
8.0.160.0000.00716.81
8.0.150.0030.00316.89
8.0.140.0040.00416.87
8.0.130.0030.00313.29
8.0.120.0080.00016.89
8.0.110.0060.00316.96
8.0.100.0000.00716.68
8.0.90.0030.00316.89
8.0.80.0030.01216.83
8.0.70.0000.00816.77
8.0.60.0040.00416.78
8.0.50.0040.00416.84
8.0.30.0110.00817.19
8.0.20.0120.00717.40
8.0.10.0000.00716.89
8.0.00.0090.00816.91
7.4.330.0000.00515.00
7.4.320.0030.00316.55
7.4.300.0060.00016.51
7.4.290.0000.00816.59
7.4.280.0040.00416.50
7.4.270.0070.00016.46
7.4.260.0080.00016.48
7.4.250.0070.00016.54
7.4.240.0030.00316.51
7.4.230.0030.00316.62
7.4.220.0120.00816.57
7.4.210.0040.01116.43
7.4.200.0030.00316.50
7.4.160.0000.01616.52
7.4.150.0140.00717.40
7.4.140.0090.00817.86
7.4.130.0130.00916.44
7.4.120.0080.01016.63
7.4.110.0100.00716.57
7.4.100.0100.00716.66
7.4.90.0090.01116.46
7.4.80.0110.00718.80
7.4.70.0120.00416.35
7.4.60.0100.00616.53
7.4.50.0040.00016.52
7.4.40.0060.01116.31
7.4.30.0030.01316.43
7.4.00.0090.00615.26
7.3.330.0000.00713.27
7.3.320.0000.00513.35
7.3.310.0070.00016.36
7.3.300.0030.00316.38
7.3.290.0090.00616.38
7.3.280.0080.00916.41
7.3.270.0110.01117.40
7.3.260.0070.01016.33
7.3.250.0070.01016.40
7.3.240.0080.00816.54
7.3.230.0160.00016.39
7.3.210.0100.00716.49
7.3.200.0080.00819.39
7.3.190.0120.00916.36
7.3.180.0090.00616.47
7.3.170.0060.00916.38
7.3.160.0050.01016.36
7.2.330.0040.01316.45
7.2.320.0100.00716.79
7.2.310.0130.00816.38
7.2.300.0070.01016.51
7.2.290.0070.01416.91
7.2.60.0000.01516.96
7.2.50.0140.00717.00
7.1.200.0090.00315.73
7.1.70.0040.00417.13
7.1.60.0060.01819.32
7.1.50.0060.00617.01
7.1.00.0030.07322.48
7.0.200.0040.00416.83
7.0.140.0100.06722.12
7.0.60.0170.08020.00
7.0.50.0130.06317.86
7.0.40.0000.05320.25
7.0.30.0200.04020.23
7.0.20.0200.04320.23
7.0.10.0170.04020.21
7.0.00.0100.05320.05
5.6.280.0070.07020.91
5.6.210.0070.03720.67
5.6.200.0000.05018.18
5.6.190.0070.08320.55
5.6.180.0400.05020.77
5.6.170.0400.07020.71
5.6.160.0030.04320.49
5.6.150.0030.05318.25
5.6.140.0000.06318.29
5.6.130.0070.03718.18
5.6.120.0070.06321.00
5.6.110.0000.06321.00
5.6.100.0100.06721.01
5.6.90.0070.07721.00
5.6.80.0130.08020.44
5.5.350.0270.07320.29
5.5.340.0130.07318.07
5.5.330.0070.05020.40
5.5.320.0300.04020.28
5.5.310.0270.08720.35
5.5.300.0100.07718.05
5.5.290.0070.08017.96
5.5.280.0100.08020.77
5.5.270.0000.08320.65
5.5.260.0100.08020.79
5.5.250.0170.07320.46
5.5.240.0170.07320.15
5.4.450.0770.03719.55
5.4.440.1130.05719.20
5.4.430.1170.06019.60
5.4.420.0700.00019.42
5.4.410.0930.00019.43
5.4.400.0830.00019.14
5.4.390.0630.00019.16
5.4.380.0370.05718.61
5.4.370.0330.05018.80
5.4.360.0230.05718.45
5.4.350.0330.05718.53
5.4.340.0170.05718.63
5.4.320.0040.03912.50
5.4.310.0080.03912.50
5.4.300.0100.04412.50
5.4.290.0050.03912.50
5.4.280.0080.03712.39
5.4.270.0040.03812.39
5.4.260.0050.03812.39
5.4.250.0070.03612.39
5.4.240.0060.03512.39
5.4.230.0050.03812.39
5.4.220.0060.04912.39
5.4.210.0080.04012.38
5.4.200.0070.04112.39
5.4.190.0100.04212.38
5.4.180.0070.03612.38
5.4.170.0050.03612.39
5.4.160.0060.04312.39
5.4.150.0100.04412.39
5.4.140.0060.03712.07
5.4.130.0040.03612.06
5.4.120.0030.03712.01
5.4.110.0060.03512.02
5.4.100.0070.03812.02
5.4.90.0060.03612.02
5.4.80.0060.03612.01
5.4.70.0080.04512.01
5.4.60.0040.04112.01
5.4.50.0050.03712.00
5.4.40.0060.04712.00
5.4.30.0060.03611.99
5.4.20.0030.04111.99
5.4.10.0060.03811.99
5.4.00.0050.03511.48
5.3.290.0070.03912.80
5.3.280.0090.03612.71
5.3.270.0010.04412.72
5.3.260.0070.03812.72
5.3.250.0070.05012.72
5.3.240.0040.04312.72
5.3.230.0090.04012.71
5.3.220.0080.04512.68
5.3.210.0090.03912.68
5.3.200.0080.03412.68
5.3.190.0090.03812.68
5.3.180.0050.03712.67
5.3.170.0030.03912.67
5.3.160.0070.03812.67
5.3.150.0130.03612.67
5.3.140.0060.03712.66
5.3.130.0060.05012.66
5.3.120.0030.04612.66
5.3.110.0080.04512.66
5.3.100.0050.03912.12
5.3.90.0030.03912.10
5.3.80.0070.04612.09
5.3.70.0090.03512.09
5.3.60.0070.03412.07
5.3.50.0090.04012.03
5.3.40.0060.03712.03
5.3.30.0090.03711.98
5.3.20.0110.04411.76
5.3.10.0040.03611.74
5.3.00.0080.03411.72
5.2.170.0060.0339.22
5.2.160.0050.0309.22
5.2.150.0050.0299.22
5.2.140.0070.0329.22
5.2.130.0080.0299.18
5.2.120.0060.0389.18
5.2.110.0040.0369.18
5.2.100.0060.0339.18
5.2.90.0050.0419.18
5.2.80.0080.0339.17
5.2.70.0040.0329.18
5.2.60.0080.0279.13
5.2.50.0110.0319.09
5.2.40.0070.0289.07
5.2.30.0050.0369.05
5.2.20.0050.0319.04
5.2.10.0060.0338.94
5.2.00.0070.0328.81
5.1.60.0040.0248.09
5.1.50.0060.0258.09
5.1.40.0060.0338.06
5.1.30.0040.0338.41
5.1.20.0030.0288.44
5.1.10.0070.0288.16
5.1.00.0040.0328.16
5.0.50.0030.0256.64
5.0.40.0010.0276.50
5.0.30.0070.0356.31
5.0.20.0060.0266.28
5.0.10.0050.0206.25
5.0.00.0050.0356.24
4.4.90.0030.0234.77
4.4.80.0030.0194.76
4.4.70.0020.0174.75
4.4.60.0060.0144.75
4.4.50.0030.0214.77
4.4.40.0050.0234.71
4.4.30.0060.0174.76
4.4.20.0030.0204.84
4.4.10.0050.0244.85
4.4.00.0040.0254.76
4.3.110.0020.0184.67
4.3.100.0020.0194.66
4.3.90.0030.0194.64
4.3.80.0030.0354.58
4.3.70.0020.0204.63
4.3.60.0040.0174.63
4.3.50.0020.0224.63
4.3.40.0040.0274.54
4.3.30.0010.0173.30
4.3.20.0020.0193.28
4.3.10.0030.0173.24
4.3.00.0230.02316.39

preferences:
48.72 ms | 401 KiB | 5 Q