3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tag {}; $setTags = []; function setTags(array $tags, &$setTags) { array_map( function (Tag $tag) { $setTags[] = $tag; }, $tags ); } var_dump($setTags); setTags( [ new Tag(), new Tag(), new Tag(), new Tag(), ], $setTags ); var_dump($setTags);

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.00316.50
8.3.50.0120.00318.32
8.3.40.0170.00318.85
8.3.30.0190.00318.73
8.3.20.0070.00021.94
8.3.10.0080.00021.76
8.3.00.0030.00623.66
8.2.180.0110.00316.38
8.2.170.0100.00322.96
8.2.160.0110.01120.36
8.2.150.0040.01424.18
8.2.140.0050.00324.66
8.2.130.0080.00019.46
8.2.120.0080.00026.35
8.2.110.0060.00320.93
8.2.100.0040.00719.77
8.2.90.0000.00817.84
8.2.80.0050.00317.97
8.2.70.0030.00517.68
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0000.00719.42
8.2.30.0040.00421.05
8.2.20.0030.00618.01
8.2.10.0070.00018.14
8.2.00.0050.00317.80
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0070.00422.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.47
8.1.190.0030.00617.51
8.1.180.0110.00318.10
8.1.170.0030.00518.65
8.1.160.0000.00722.03
8.1.150.0060.00318.95
8.1.140.0000.00819.50
8.1.130.0000.00717.76
8.1.120.0000.00717.52
8.1.110.0030.00817.48
8.1.100.0050.00317.38
8.1.90.0000.00717.45
8.1.80.0000.00717.54
8.1.70.0060.00317.45
8.1.60.0080.00017.58
8.1.50.0040.00417.57
8.1.40.0030.00517.43
8.1.30.0000.00917.58
8.1.20.0040.00417.64
8.1.10.0040.00417.51
8.1.00.0040.00417.41
8.0.300.0060.00319.65
8.0.290.0050.00316.75
8.0.280.0030.00418.46
8.0.270.0030.00317.26
8.0.260.0030.00317.18
8.0.250.0000.00717.07
8.0.240.0040.00417.02
8.0.230.0070.00016.91
8.0.220.0040.00416.98
8.0.210.0000.00716.98
8.0.200.0070.00016.92
8.0.190.0060.00317.02
8.0.180.0070.00017.02
8.0.170.0070.00017.05
8.0.160.0040.00416.91
8.0.150.0000.00916.99
8.0.140.0040.00416.84
8.0.130.0000.00613.39
8.0.120.0080.00016.83
8.0.110.0040.00416.82
8.0.100.0040.00416.78
8.0.90.0040.00416.92
8.0.80.0120.00616.88
8.0.70.0000.00716.89
8.0.60.0040.00416.80
8.0.50.0030.00516.90
8.0.30.0070.01117.15
8.0.20.0140.00817.40
8.0.10.0040.00417.14
8.0.00.0110.00717.07
7.4.330.0060.00015.55
7.4.320.0000.00616.50
7.4.300.0030.00316.43
7.4.290.0030.00316.38
7.4.280.0000.00816.66
7.4.270.0060.00016.38
7.4.260.0000.00716.51
7.4.250.0070.00016.62
7.4.240.0070.00016.52
7.4.230.0030.00316.52
7.4.220.0140.00616.70
7.4.210.0150.00616.64
7.4.200.0000.00716.59
7.4.160.0050.01116.60
7.4.150.0180.00017.40
7.4.140.0140.00717.86
7.4.130.0130.00516.47
7.4.120.0090.00816.58
7.4.110.0100.00616.66
7.4.100.0130.00416.61
7.4.90.0080.00816.47
7.4.80.0100.00719.39
7.4.70.0090.00916.69
7.4.60.0090.00916.61
7.4.50.0040.01416.53
7.4.40.0030.01316.29
7.4.30.0080.00816.58
7.4.00.0060.01215.14
7.3.330.0030.00313.22
7.3.320.0050.00013.11
7.3.310.0050.00216.19
7.3.300.0030.00516.31
7.3.290.0060.00916.29
7.3.280.0070.01016.28
7.3.270.0130.00517.40
7.3.260.0090.00916.44
7.3.250.0100.00716.40
7.3.240.0120.00916.33
7.3.230.0170.00516.47
7.3.210.0100.00716.39
7.3.200.0090.00916.34
7.3.190.0100.00616.32
7.3.180.0090.01216.45
7.3.170.0090.01416.49
7.3.160.0040.01216.53
7.2.330.0100.00716.68
7.2.320.0120.01216.32
7.2.310.0060.01216.27
7.2.300.0030.01716.78
7.2.290.0150.00616.70
7.2.80.0150.00916.64
7.2.60.0070.00716.67
7.2.00.0000.00919.10
7.1.200.0060.00815.46
7.1.100.0030.01018.17
7.1.70.0000.00717.14
7.1.60.0030.00717.23
7.1.00.0070.07022.51
7.0.200.0180.00414.66
7.0.120.0270.05720.16
7.0.110.0330.05320.20
7.0.100.0300.05320.33
7.0.90.0270.06020.27
7.0.80.0270.05720.26
7.0.70.0330.06020.24
7.0.60.0330.05020.22
7.0.50.0330.05020.20
7.0.40.0330.06720.26
7.0.30.0470.04720.29
7.0.20.0370.05320.34
7.0.10.0470.05020.18
7.0.00.0230.06020.39
5.6.260.0030.06021.14
5.6.250.0130.05021.06
5.6.240.0030.06721.00
5.6.230.0130.05720.91
5.6.220.0170.05020.96
5.6.210.0070.06021.05
5.6.200.0170.04720.81
5.6.190.0070.06320.81
5.6.180.0100.05721.02
5.6.170.0070.06021.00
5.6.160.0130.05020.84
5.6.150.0000.06321.07
5.6.140.0100.05720.95
5.6.130.0100.05321.09
5.6.120.0070.06020.84
5.6.110.0030.06021.02
5.6.100.0070.06021.06
5.6.90.0130.05020.88
5.6.80.0100.05320.31
5.6.70.0270.05720.47
5.6.60.0170.05320.46
5.6.50.0200.04320.23
5.6.40.0130.05020.31
5.6.30.0230.04320.30
5.6.20.0100.05320.40
5.6.10.0100.05320.16
5.6.00.0100.05320.35

preferences:
56.67 ms | 400 KiB | 5 Q