3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BlogCommentRepository { public function find($something) { echo "called!"; return 1; } } $blogCommentRepository = new BlogCommentRepository(); $blogCommentIds = "1,2,3,4,5"; $blogCommentRepository->find(explode(",", $blogCommentIds)); 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.0120.00918.55
8.3.50.0060.01422.01
8.3.40.0110.00418.67
8.3.30.0100.00318.96
8.3.20.0000.00720.33
8.3.10.0040.00420.51
8.3.00.0050.00319.38
8.2.180.0140.00716.48
8.2.170.0110.00322.96
8.2.160.0070.01020.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.12
8.2.110.0000.01022.09
8.2.100.0090.00317.91
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0030.00917.25
8.2.60.0000.00918.04
8.2.50.0080.00018.10
8.2.40.0040.00420.40
8.2.30.0000.01019.38
8.2.20.0040.00417.74
8.2.10.0040.00418.12
8.2.00.0040.00417.56
8.1.280.0110.00725.92
8.1.270.0000.00922.20
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00622.21
8.1.230.0110.00017.77
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00518.94
8.1.160.0050.00318.85
8.1.150.0050.00320.73
8.1.140.0000.00717.44
8.1.130.0000.00817.76
8.1.120.0040.00417.32
8.1.110.0000.00817.47
8.1.100.0000.00717.35
8.1.90.0030.00717.34
8.1.80.0040.00417.46
8.1.70.0070.00017.40
8.1.60.0000.00817.55
8.1.50.0080.00017.42
8.1.40.0030.00617.52
8.1.30.0030.00517.66
8.1.20.0030.00617.54
8.1.10.0000.00717.60
8.1.00.0040.00417.52
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.38
8.0.270.0030.00317.29
8.0.260.0030.00317.24
8.0.250.0070.00017.02
8.0.240.0030.00317.00
8.0.230.0030.00316.97
8.0.220.0000.00616.99
8.0.210.0060.00016.87
8.0.200.0030.00316.88
8.0.190.0000.00816.88
8.0.180.0070.00016.97
8.0.170.0040.00416.95
8.0.160.0040.00416.84
8.0.150.0030.00316.89
8.0.140.0080.00016.93
8.0.130.0000.00513.31
8.0.120.0040.00416.92
8.0.110.0050.00216.85
8.0.100.0030.00516.75
8.0.90.0070.00016.86
8.0.80.0090.00916.86
8.0.70.0050.00216.95
8.0.60.0050.00216.88
8.0.50.0000.00716.93
8.0.30.0070.01217.21
8.0.20.0140.00817.40
8.0.10.0000.00717.09
8.0.00.0100.00816.61
7.4.330.0000.00515.21
7.4.320.0030.00316.50
7.4.300.0040.00416.58
7.4.290.0000.00716.59
7.4.280.0000.00816.59
7.4.270.0000.00716.61
7.4.260.0000.00716.58
7.4.250.0050.00216.43
7.4.240.0020.00516.60
7.4.230.0030.00316.68
7.4.220.0150.00616.40
7.4.210.0140.00016.50
7.4.200.0070.00016.45
7.4.160.0130.00316.36
7.4.150.0150.00917.40
7.4.140.0090.00717.86
7.4.130.0110.00716.64
7.4.120.0140.00316.58
7.4.110.0100.00716.55
7.4.100.0130.00316.52
7.4.90.0060.01316.59
7.4.80.0100.00718.80
7.4.70.0130.00316.52
7.4.60.0120.00616.49
7.4.50.0030.00316.48
7.4.40.0060.00916.57
7.4.30.0070.01016.58
7.4.00.0070.01015.24
7.3.330.0030.00313.30
7.3.320.0020.00213.10
7.3.310.0000.00816.37
7.3.300.0030.00316.27
7.3.290.0090.00616.30
7.3.280.0130.00416.28
7.3.270.0070.01517.40
7.3.260.0040.01316.32
7.3.250.0090.00716.24
7.3.240.0070.01116.48
7.3.230.0080.00816.39
7.3.210.0030.01416.30
7.3.200.0070.01519.39
7.3.190.0140.00716.43
7.3.180.0110.00416.41
7.3.170.0150.00216.43
7.3.160.0040.01216.29
7.3.10.0070.00616.58
7.3.00.0020.01116.56
7.2.330.0110.00716.72
7.2.320.0140.00316.66
7.2.310.0130.01016.65
7.2.300.0030.01716.64
7.2.290.0090.01216.66
7.2.130.0100.00416.96
7.2.120.0090.00616.79
7.2.110.0080.00516.56
7.2.100.0050.01016.74
7.2.90.0030.00816.88
7.2.80.0050.00716.92
7.2.70.0080.00516.78
7.2.60.0090.00516.67
7.2.50.0090.00916.94
7.2.40.0050.00816.81
7.2.30.0050.00916.93
7.2.20.0040.00916.81
7.2.10.0060.00916.80
7.2.00.0080.00416.89
7.1.250.0080.00415.56
7.1.200.0000.00915.60
7.1.70.0000.00717.12
7.1.60.0100.01319.32
7.1.50.0040.00716.70
7.1.00.0000.08022.26
7.0.200.0000.00916.80
7.0.140.0030.05021.95
7.0.60.0030.06720.04
7.0.50.0100.08317.88
7.0.40.0030.09020.10
7.0.30.0370.04320.13
7.0.20.0370.07020.09
7.0.10.0030.04320.02
7.0.00.0070.07020.06
5.6.280.0030.07320.91
5.6.210.0030.04020.75
5.6.200.0030.09018.19
5.6.190.0100.08320.42
5.6.180.0470.03320.63
5.6.170.0230.05720.52
5.6.160.0030.09020.54
5.6.150.0070.08318.15
5.6.140.0100.04718.27
5.6.130.0200.06318.18
5.6.120.0100.08021.14
5.6.110.0070.08320.99
5.6.100.0070.08321.01
5.6.90.0170.06021.04
5.6.80.0130.07320.41
5.5.350.0230.08020.45
5.5.340.0030.06317.98
5.5.330.0100.06720.42
5.5.320.0270.06720.30
5.5.310.0400.07320.36
5.5.300.0130.05018.00
5.5.290.0000.04317.95
5.5.280.0130.08020.68
5.5.270.0070.08320.75
5.5.260.0030.04320.76
5.5.250.0130.07020.68
5.5.240.0100.07020.15
5.4.450.0230.04319.64
5.4.440.0300.06319.46
5.4.430.0200.05319.32
5.4.420.0200.07719.32
5.4.410.0230.03719.41
5.4.400.0130.04018.87
5.4.390.0200.08019.06
5.4.380.0200.03319.27
5.4.370.0230.03318.95
5.4.360.0200.04319.24
5.4.350.0130.08019.20
5.4.340.0230.03719.09
5.4.320.0230.07319.24
5.4.310.0400.03319.31
5.4.300.0300.06719.19
5.4.290.0370.04319.24
5.4.280.0230.04019.21
5.4.270.0230.03719.13
5.4.260.0300.06319.10
5.4.250.0230.05719.20
5.4.240.0230.06319.07
5.4.230.0270.07719.21
5.4.220.0270.07319.14
5.4.210.0230.06318.99
5.4.200.0230.03719.16
5.4.190.0230.08018.99
5.4.180.0230.07319.30
5.4.170.0270.05319.07
5.4.160.0200.05319.20
5.4.150.0330.07019.12
5.4.140.0270.07016.66
5.4.130.0230.06316.33
5.4.120.0230.06316.51
5.4.110.0230.03716.19
5.4.100.0170.03716.19
5.4.90.0270.03016.56
5.4.80.0130.04016.39
5.4.70.0130.04016.52
5.4.60.0230.03016.51
5.4.50.0230.04316.43
5.4.40.0170.07316.55
5.4.30.0130.05016.42
5.4.20.0170.05016.34
5.4.10.0200.03316.42
5.4.00.0200.04015.78
5.3.290.0130.04314.71
5.3.280.0230.03714.52
5.3.270.0130.04314.51
5.3.260.0270.07014.68
5.3.250.0230.07314.53
5.3.240.0200.06314.69
5.3.230.0230.04014.49
5.3.220.0130.04014.64
5.3.210.0100.05714.55
5.3.200.0200.03314.79
5.3.190.0200.03314.46
5.3.180.0230.03714.46
5.3.170.0170.03714.55
5.3.160.0270.06714.64
5.3.150.0200.03314.49
5.3.140.0230.03314.46
5.3.130.0200.03314.45
5.3.120.0170.04714.52
5.3.110.0170.03714.45
5.3.100.0230.03714.26
5.3.90.0230.03013.92
5.3.80.0270.04014.02
5.3.70.0200.03314.02
5.3.60.0200.03313.91
5.3.50.0170.03714.09
5.3.40.0200.03314.06
5.3.30.0270.02713.96
5.3.20.0130.04013.77
5.3.10.0230.02713.88
5.3.00.0130.03713.56
5.2.170.0070.03711.22
5.2.160.0130.03011.22
5.2.150.0170.02711.05
5.2.140.0130.03011.05
5.2.130.0170.05711.01
5.2.120.0170.05311.11
5.2.110.0200.03711.15
5.2.100.0170.03011.21
5.2.90.0200.03711.18
5.2.80.0130.03011.04
5.2.70.0100.03311.18
5.2.60.0070.04311.03
5.2.50.0200.02310.99
5.2.40.0170.02311.00
5.2.30.0170.02710.87
5.2.20.0200.02010.93
5.2.10.0100.03010.93
5.2.00.0100.03010.94
5.1.60.0170.02010.15
5.1.50.0200.0179.89
5.1.40.0230.0139.91
5.1.30.0100.02710.30
5.1.20.0130.02310.41
5.1.10.0100.02710.05
5.1.00.0170.0239.97
5.0.50.0100.0208.67
5.0.40.0070.0238.29
5.0.30.0030.0338.11
5.0.20.0030.0208.13
5.0.10.0130.0378.26
5.0.00.0100.0278.21
4.4.90.0030.0278.09
4.4.80.0100.0308.09
4.4.70.0100.0178.09
4.4.60.0100.0208.09
4.4.50.0070.0278.09
4.4.40.0100.0508.09
4.4.30.0070.0178.09
4.4.20.0030.0208.09
4.4.10.0100.0238.09
4.4.00.0170.0378.09
4.3.110.0070.0178.09
4.3.100.0070.0208.09
4.3.90.0030.0178.09
4.3.80.0070.0238.09
4.3.70.0030.0208.09
4.3.60.0100.0178.09
4.3.50.0130.0308.09
4.3.40.0070.0378.09
4.3.30.0030.0178.09
4.3.20.0070.0178.09
4.3.10.0030.0408.09
4.3.00.0100.0238.09

preferences:
64.09 ms | 401 KiB | 5 Q