3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ref = new ReflectionFunction('array_unique'); var_dump(count($ref->getParameters())); // outputs "1" in the PHP runtime $ref = new ReflectionFunction('array_search'); var_dump(count($ref->getParameters())); // always outputs "3"

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.1.130.0030.00317.69
8.1.120.0000.00717.37
8.1.110.0040.00417.45
8.1.100.0000.00717.45
8.1.90.0000.00717.44
8.1.80.0040.00417.43
8.1.70.0030.00317.45
8.1.60.0020.00517.63
8.1.50.0030.00517.53
8.1.40.0060.00317.49
8.1.30.0030.00517.51
8.1.20.0040.00417.66
8.1.10.0050.00317.48
8.1.00.0000.00817.45
8.0.260.0050.00317.10
8.0.250.0030.00316.93
8.0.240.0000.00716.77
8.0.230.0030.00316.91
8.0.220.0070.00016.72
8.0.210.0040.00416.87
8.0.200.0040.00416.80
8.0.190.0080.00016.88
8.0.180.0080.00016.96
8.0.170.0000.00716.86
8.0.160.0000.00716.98
8.0.150.0040.00416.77
8.0.140.0040.00416.68
8.0.130.0000.00713.38
8.0.120.0040.00416.76
8.0.110.0030.00516.88
8.0.100.0040.00416.90
8.0.90.0040.00416.70
8.0.80.0070.01316.80
8.0.70.0000.00716.86
8.0.60.0030.00316.76
8.0.50.0000.00716.75
8.0.30.0090.00917.09
8.0.20.0070.01217.40
8.0.10.0050.00216.85
8.0.00.0090.01116.76
7.4.330.0000.00516.69
7.4.320.0030.00316.49
7.4.300.0060.00016.61
7.4.290.0040.00416.57
7.4.280.0050.00316.54
7.4.270.0030.00316.58
7.4.260.0000.00716.63
7.4.250.0020.00516.32
7.4.240.0030.00516.51
7.4.230.0000.00716.58
7.4.220.0110.01116.63
7.4.210.0030.01016.45
7.4.200.0030.00316.37
7.4.160.0120.00316.57
7.4.150.0120.01217.40
7.4.140.0140.00917.86
7.4.130.0090.00916.40
7.4.120.0080.00916.71
7.4.110.0140.00316.41
7.4.100.0150.00916.54
7.4.90.0080.00816.36
7.4.80.0070.01019.39
7.4.70.0120.00416.30
7.4.60.0060.00916.41
7.4.50.0030.01016.47
7.4.40.0090.00616.30
7.4.30.0070.01316.43
7.4.00.0070.00914.90
7.3.330.0090.00013.09
7.3.320.0000.00612.94
7.3.310.0030.00316.04
7.3.300.0000.00716.01
7.3.290.0080.00616.17
7.3.280.0080.00816.13
7.3.270.0110.00617.40
7.3.260.0100.00616.41
7.3.250.0090.01116.25
7.3.240.0090.00916.15
7.3.230.0170.00616.39
7.3.210.0150.00416.51
7.3.200.0060.01116.19
7.3.190.0080.00816.34
7.3.180.0100.00616.51
7.3.170.0200.00316.27
7.3.160.0030.01716.36
7.3.120.0070.00615.94
7.3.110.0030.01315.89
7.3.100.0050.00715.87
7.3.90.0070.00615.94
7.3.80.0040.00716.02
7.3.70.0070.00715.95
7.3.60.0030.01016.00
7.3.50.0060.01015.99
7.3.40.0040.00815.97
7.3.30.0070.00615.96
7.3.20.0100.00316.85
7.3.10.0080.00716.79
7.3.00.0040.01016.94
7.2.330.0120.00616.48
7.2.320.0070.01016.43
7.2.310.0070.01016.30
7.2.300.0120.00416.27
7.2.290.0100.00716.65
7.2.250.0000.01715.16
7.2.240.0080.00816.11
7.2.230.0070.00816.02
7.2.220.0070.00715.97
7.2.210.0100.00616.20
7.2.200.0040.00816.15
7.2.190.0090.00916.11
7.2.180.0070.00815.95
7.2.170.0060.00715.96
7.2.160.0100.00717.15
7.2.150.0030.01017.15
7.2.140.0070.01017.15
7.2.130.0060.01017.15
7.2.120.0040.01417.15
7.2.110.0060.01017.15
7.2.100.0080.00817.15
7.2.90.0030.01417.15
7.2.80.0030.00617.15
7.2.70.0110.00417.15
7.2.60.0070.00816.98
7.2.50.0050.00617.15
7.2.40.0070.01017.15
7.2.30.0040.01117.15
7.2.20.0040.01517.15
7.2.10.0070.00717.15
7.2.00.0070.00818.70
7.1.330.0080.00716.32
7.1.320.0030.00816.43
7.1.310.0020.01316.46
7.1.300.0030.01016.28
7.1.290.0040.01316.40
7.1.280.0100.00516.43
7.1.270.0100.00316.33
7.1.260.0050.01016.37
7.1.250.0040.01217.15
7.1.200.0040.00415.54
7.1.120.0030.00818.62
7.1.110.0030.00717.80
7.1.100.0030.00917.84
7.1.90.0050.00518.05
7.1.80.0030.00717.90
7.1.70.0040.00516.87
7.1.60.0140.00927.16
7.1.50.0090.01025.76
7.1.40.0070.01734.18
7.1.30.0140.00834.22
7.1.20.0070.01534.44
7.1.10.0000.01016.69
7.1.00.0020.04319.38
7.0.260.0030.00718.20
7.0.250.0000.01017.66
7.0.240.0000.01017.90
7.0.230.0000.01117.69
7.0.220.0030.00817.52
7.0.210.0000.00916.66
7.0.200.0040.00416.42
7.0.190.0030.00616.43
7.0.180.0050.00516.05
7.0.170.0000.01016.21
7.0.160.0030.00916.14
7.0.150.0100.00016.30
7.0.140.0050.00516.45
7.0.130.0090.00616.30
7.0.120.0000.01516.22
7.0.110.0040.00416.14
7.0.100.0000.00916.24
7.0.90.0040.00716.33
7.0.80.0030.00916.16
7.0.70.0070.04218.89
7.0.60.0050.04518.94
7.0.50.0050.04519.17
7.0.40.0050.03518.16
7.0.30.0100.04418.29
7.0.20.0030.04518.19
7.0.10.0080.04418.15
7.0.00.0080.03218.27
5.6.300.0100.04620.75
5.6.290.0070.04920.83
5.6.280.0030.04320.94
5.6.270.0070.06320.85
5.6.260.0030.05421.02
5.6.250.0100.04721.02
5.6.240.0030.05520.96
5.6.230.0130.04520.92
5.6.220.0050.06920.67
5.6.210.0050.04620.76
5.6.200.0000.06520.88
5.6.190.0120.06420.87
5.6.180.0050.05020.95
5.6.170.0080.06720.94
5.6.160.0080.06820.87
5.6.150.0100.04820.87
5.6.140.0110.07220.83
5.6.130.0080.06820.91
5.6.120.0080.06520.96
5.6.110.0150.06320.81
5.6.100.0100.05020.83
5.6.90.0070.07420.98
5.6.80.0120.06220.21
5.6.70.0080.06120.26
5.6.60.0120.05920.37
5.6.50.0080.06220.28
5.6.40.0050.06320.27
5.6.30.0030.06720.21
5.6.20.0050.06220.31
5.6.10.0020.05820.23
5.6.00.0070.06020.33
5.5.380.0100.04517.41
5.5.370.0060.04917.48
5.5.360.0070.05818.91
5.5.350.0070.04918.91
5.5.340.0130.06019.35
5.5.330.0140.05919.37
5.5.320.0120.04519.39
5.5.310.0050.07219.41
5.5.300.0070.04919.27
5.5.290.0080.05619.39
5.5.280.0070.06019.39
5.5.270.0070.06719.26
5.5.260.0050.07019.35
5.5.250.0120.06419.12
5.5.240.0100.06218.67
5.5.230.0050.06018.71
5.5.220.0050.05818.65
5.5.210.0060.06018.69
5.5.200.0090.06018.60
5.5.190.0050.06518.75
5.5.180.0070.06518.67
5.5.160.0030.06518.79
5.5.150.0130.05718.64
5.5.140.0080.06018.83
5.5.130.0070.06118.63
5.5.120.0050.06018.75
5.5.110.0060.06218.70
5.5.100.0020.05318.54
5.5.90.0080.04918.59
5.5.80.0050.06318.58
5.5.70.0100.06318.50
5.5.60.0100.05618.59
5.5.50.0030.06418.66
5.5.40.0090.06118.56
5.5.30.0070.05618.66
5.5.20.0020.04818.46
5.5.10.0080.07118.48
5.5.00.0090.05718.52
5.4.450.0040.05419.42
5.4.440.0030.05119.38
5.4.430.0070.04819.18
5.4.420.0070.05219.31
5.4.410.0130.03919.34
5.4.400.0070.04518.91
5.4.390.0130.04018.94
5.4.380.0200.03318.99
5.4.370.0070.04519.08
5.4.360.0060.04819.00
5.4.350.0100.04118.99
5.4.340.0130.03918.99
5.4.320.0030.05018.91
5.4.310.0070.04619.04
5.4.300.0190.03819.01
5.4.290.0130.05218.97
5.4.280.0100.04418.87
5.4.270.0170.03518.96
5.4.260.0110.04218.96
5.4.250.0150.03818.94
5.4.240.0140.03818.93
5.4.230.0030.05619.00
5.4.220.0070.04619.05
5.4.210.0100.04218.81
5.4.200.0110.04118.99
5.4.190.0070.04818.84
5.4.180.0220.02918.84
5.4.170.0080.04518.95
5.4.160.0130.04118.75
5.4.150.0130.04018.95
5.4.140.0030.04816.53
5.4.130.0210.03016.35
5.4.120.0070.04716.54
5.4.110.0130.03716.53
5.4.100.0110.03916.50
5.4.90.0060.04216.34
5.4.80.0130.03916.48
5.4.70.0160.03316.27
5.4.60.0040.04716.36
5.4.50.0030.04516.51
5.4.40.0100.04016.35
5.4.30.0070.04316.47
5.4.20.0070.04216.32
5.4.10.0100.04016.55
5.4.00.0070.04215.85
5.3.290.0030.05114.72
5.3.280.0130.03914.63
5.3.270.0070.04514.54
5.3.260.0030.06514.74
5.3.250.0070.04814.53
5.3.240.0090.04314.71
5.3.230.0060.04514.66
5.3.220.0070.04414.57
5.3.210.0090.04314.55
5.3.200.0030.04714.55
5.3.190.0070.04414.65
5.3.180.0130.03814.62
5.3.170.0080.04314.73
5.3.160.0140.03814.34
5.3.150.0070.04314.49
5.3.140.0030.04714.73
5.3.130.0060.04514.53
5.3.120.0070.04714.59
5.3.110.0060.04514.68
5.3.100.0070.04414.17
5.3.90.0030.04514.06
5.3.80.0030.04714.10
5.3.70.0100.03913.82
5.3.60.0060.04514.15
5.3.50.0070.04313.88
5.3.40.0100.04013.93
5.3.30.0030.04513.89
5.3.20.0030.04513.88
5.3.10.0170.03013.80
5.3.00.0100.03813.72
5.2.170.0070.04611.05
5.2.160.0100.03011.31
5.2.150.0090.03511.28
5.2.140.0100.03011.35
5.2.130.0100.02911.23
5.2.120.0060.03411.23
5.2.110.0120.02811.29
5.2.100.0070.03411.21
5.2.90.0070.03511.07
5.2.80.0070.03311.19
5.2.70.0120.02911.22
5.2.60.0000.04011.18
5.2.50.0090.03111.24
5.2.40.0090.03011.15
5.2.30.0040.03611.02
5.2.20.0100.02910.94
5.2.10.0030.03510.91
5.2.00.0000.03910.89
5.1.60.0100.02410.15
5.1.50.0080.02710.20
5.1.40.0060.02810.17
5.1.30.0100.02710.47
5.1.20.0130.02310.64
5.1.10.0040.03110.15
5.1.00.0110.02510.04
5.0.50.0030.0279.23
5.0.40.0070.0209.23
5.0.30.0070.0419.23
5.0.20.0040.0239.23
5.0.10.0080.0199.23
5.0.00.0070.0339.23
4.4.90.0030.0199.23
4.4.80.0000.0219.23
4.4.70.0070.0159.23
4.4.60.0050.0169.23
4.4.50.0040.0189.23
4.4.40.0070.0269.23
4.4.30.0040.0189.23
4.4.20.0070.0149.23
4.4.10.0100.0179.23
4.4.00.0060.0269.23
4.3.110.0030.0249.23
4.3.100.0060.0159.23
4.3.90.0030.0179.23
4.3.80.0070.0249.23
4.3.70.0030.0179.23
4.3.60.0070.0149.23
4.3.50.0000.0219.23
4.3.40.0030.0279.23
4.3.30.0000.0219.23
4.3.20.0030.0179.23
4.3.10.0040.0189.23
4.3.00.0000.0209.23

preferences:
15.21 ms | 406 KiB | 5 Q