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); } } $blogCommentRepository = new BlogCommentRepository(); $blogCommentIds = "1,2,3,4,5"; 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.0110.01118.31
8.3.50.0140.00522.13
8.3.40.0060.01518.46
8.3.30.0100.00718.92
8.3.20.0040.00420.34
8.3.10.0050.00320.36
8.3.00.0060.00319.25
8.2.180.0110.01116.63
8.2.170.0210.00018.67
8.2.160.0100.01022.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00222.23
8.2.110.0060.00319.08
8.2.100.0040.00717.71
8.2.90.0050.00319.23
8.2.80.0000.00917.97
8.2.70.0070.00317.50
8.2.60.0040.00418.05
8.2.50.0040.00718.10
8.2.40.0060.00320.47
8.2.30.0060.00319.16
8.2.20.0050.00217.61
8.2.10.0000.00717.99
8.2.00.0070.00017.68
8.1.280.0150.00425.92
8.1.270.0080.00022.07
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0070.00319.52
8.1.230.0040.00817.70
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0080.00018.41
8.1.160.0040.00418.80
8.1.150.0080.00018.92
8.1.140.0000.00817.36
8.1.130.0000.00717.70
8.1.120.0070.00017.45
8.1.110.0040.00417.42
8.1.100.0000.00717.43
8.1.90.0100.00017.42
8.1.80.0050.00217.37
8.1.70.0040.00417.39
8.1.60.0030.00617.51
8.1.50.0030.00617.55
8.1.40.0040.00417.40
8.1.30.0080.00017.59
8.1.20.0060.00317.61
8.1.10.0090.00017.58
8.1.00.0070.00017.36
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0030.00317.27
8.0.260.0030.00317.22
8.0.250.0080.00017.00
8.0.240.0070.00016.95
8.0.230.0000.00716.93
8.0.220.0000.00716.95
8.0.210.0000.00716.89
8.0.200.0030.00316.86
8.0.190.0000.00716.91
8.0.180.0070.00016.87
8.0.170.0040.00416.93
8.0.160.0070.00016.86
8.0.150.0070.00016.87
8.0.140.0020.00516.81
8.0.130.0030.00313.32
8.0.120.0040.00416.90
8.0.110.0040.00416.77
8.0.100.0040.00416.94
8.0.90.0030.00516.96
8.0.80.0040.01116.85
8.0.70.0000.00716.79
8.0.60.0040.00416.73
8.0.50.0040.00416.70
8.0.30.0080.01117.23
8.0.20.0080.01017.40
8.0.10.0040.00416.86
8.0.00.0100.00716.82
7.4.330.0030.00315.10
7.4.320.0020.00516.52
7.4.300.0060.00016.50
7.4.290.0000.00716.49
7.4.280.0000.00816.50
7.4.270.0060.00016.61
7.4.260.0000.00716.48
7.4.250.0040.00416.43
7.4.240.0020.00516.58
7.4.230.0000.00716.41
7.4.220.0140.00316.53
7.4.210.0030.01216.61
7.4.200.0030.00316.30
7.4.160.0090.00916.54
7.4.150.0220.00317.40
7.4.140.0070.01117.86
7.4.130.0080.01016.53
7.4.120.0110.00716.45
7.4.110.0060.01116.67
7.4.100.0120.00316.32
7.4.90.0070.01416.52
7.4.80.0070.01018.80
7.4.70.0030.01416.56
7.4.60.0040.01216.47
7.4.50.0030.00316.50
7.4.40.0090.01216.46
7.4.30.0160.00016.53
7.4.00.0120.00015.11
7.3.330.0000.00513.23
7.3.320.0050.00013.13
7.3.310.0000.00716.20
7.3.300.0070.00016.17
7.3.290.0090.00916.35
7.3.280.0080.00816.27
7.3.270.0120.00917.40
7.3.260.0140.00316.27
7.3.250.0120.00516.25
7.3.240.0080.01116.55
7.3.230.0080.00816.39
7.3.210.0130.00316.34
7.3.200.0060.01019.39
7.3.190.0000.02016.37
7.3.180.0070.01016.26
7.3.170.0030.01316.31
7.3.160.0150.00616.28
7.2.330.0090.00916.71
7.2.320.0090.00916.57
7.2.310.0130.01016.51
7.2.300.0100.01016.48
7.2.290.0070.01016.87
7.1.70.0000.01017.27
7.1.60.0100.01619.32
7.1.50.0060.01616.61
7.1.00.0100.07022.46
7.0.200.0040.00416.73
7.0.140.0030.06322.12
7.0.70.4700.03719.88
7.0.60.0030.08319.93
7.0.50.0000.06717.90
7.0.40.0130.08019.95
7.0.30.0330.07320.19
7.0.20.0270.06720.09
7.0.10.0300.05320.21
7.0.00.0130.08320.10
5.6.280.0030.07320.93
5.6.210.0200.07020.47
5.6.200.0170.07718.18
5.6.190.0130.08320.77
5.6.180.0030.08020.44
5.6.170.0370.07320.40
5.6.160.0030.09020.44
5.6.150.0100.08318.29
5.6.140.0030.05018.18
5.6.130.0070.05018.11
5.6.120.0030.04020.98
5.6.110.0070.06021.04
5.6.100.0070.04020.99
5.6.90.0070.07321.11
5.6.80.0100.07720.44
5.6.70.0300.07020.35
5.5.350.0070.07320.39
5.5.340.0070.07318.09
5.5.330.0130.04020.41
5.5.320.0030.08720.32
5.5.310.0300.07020.30
5.5.300.0000.04318.07
5.5.290.0200.06717.98
5.5.280.0130.06720.73
5.5.270.0100.08320.80
5.5.260.0100.04020.84
5.5.250.0070.07020.66
5.5.240.0100.06320.12
5.4.450.0270.03319.20
5.4.440.1070.05019.58
5.4.430.0930.05319.69
5.4.420.0670.00019.22
5.4.410.0670.00019.26
5.4.400.0630.00019.21
5.4.390.0630.00019.11
5.4.380.0400.06318.76
5.4.370.0630.04318.50
5.4.360.0270.05718.86
5.4.350.0330.06318.66
5.4.340.0470.06318.50
5.4.320.0050.03712.50
5.4.310.0050.04012.50
5.4.300.0050.03712.50
5.4.290.0070.03612.50
5.4.280.0050.03612.39
5.4.270.0070.03512.39
5.4.260.0080.04412.39
5.4.250.0060.03812.39
5.4.240.0030.04312.39
5.4.230.0060.03912.38
5.4.220.0070.03512.38
5.4.210.0030.04612.38
5.4.200.0050.04912.39
5.4.190.0050.04512.38
5.4.180.0080.03612.39
5.4.170.0060.03812.39
5.4.160.0060.03812.39
5.4.150.0040.03912.38
5.4.140.0070.03612.07
5.4.130.0070.04112.05
5.4.120.0060.03412.02
5.4.110.0070.03412.01
5.4.100.0060.04512.01
5.4.90.0090.03412.01
5.4.80.0040.04012.02
5.4.70.0060.03412.00
5.4.60.0020.03812.00
5.4.50.0080.03212.01
5.4.40.0040.03512.00
5.4.30.0050.03811.99
5.4.20.0050.03512.00
5.4.10.0050.03911.99
5.4.00.0050.04111.48
5.3.290.0060.03812.80
5.3.280.0090.04012.71
5.3.270.0100.04412.73
5.3.260.0090.04112.72
5.3.250.0040.03812.72
5.3.240.0090.04912.72
5.3.230.0090.04212.71
5.3.220.0070.03812.68
5.3.210.0030.04312.68
5.3.200.0060.03712.68
5.3.190.0100.04212.68
5.3.180.0050.03812.68
5.3.170.0030.04012.67
5.3.160.0070.04012.68
5.3.150.0040.04012.67
5.3.140.0060.03712.66
5.3.130.0080.04812.66
5.3.120.0070.04812.66
5.3.110.0040.05712.66
5.3.100.0130.04812.12
5.3.90.0070.04412.10
5.3.80.0100.03312.09
5.3.70.0050.03912.09
5.3.60.0080.03612.08
5.3.50.0060.04312.03
5.3.40.0070.03612.03
5.3.30.0070.03611.98
5.3.20.0050.03811.76
5.3.10.0030.04211.73
5.3.00.0110.03211.72
5.2.170.0070.0359.22
5.2.160.0040.0349.22
5.2.150.0060.0299.22
5.2.140.0050.0309.22
5.2.130.0040.0309.18
5.2.120.0060.0309.18
5.2.110.0040.0339.18
5.2.100.0050.0279.18
5.2.90.0050.0289.18
5.2.80.0060.0279.18
5.2.70.0030.0319.17
5.2.60.0080.0269.13
5.2.50.0020.0329.09
5.2.40.0090.0239.07
5.2.30.0060.0289.05
5.2.20.0020.0329.04
5.2.10.0050.0278.94
5.2.00.0050.0298.80
5.1.60.0030.0258.09
5.1.50.0070.0228.08
5.1.40.0040.0248.06
5.1.30.0050.0258.41
5.1.20.0050.0288.43
5.1.10.0070.0238.16
5.1.00.0070.0308.16
5.0.50.0040.0206.64
5.0.40.0060.0176.50
5.0.30.0040.0316.31
5.0.20.0010.0226.28
5.0.10.0030.0216.25
5.0.00.0030.0326.25
4.4.90.0030.0214.78
4.4.80.0010.0174.75
4.4.70.0030.0184.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0020.0264.70
4.4.30.0010.0174.76
4.4.20.0020.0164.85
4.4.10.0020.0174.85
4.4.00.0030.0274.76
4.3.110.0020.0154.67
4.3.100.0030.0194.66
4.3.90.0020.0144.63
4.3.80.0030.0324.58
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0030.0184.63
4.3.40.0010.0284.53
4.3.30.0040.0143.30
4.3.20.0030.0153.28
4.3.10.0030.0153.23
4.3.00.0100.01716.39

preferences:
40.03 ms | 401 KiB | 5 Q