3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ref = new ReflectionFunction('array_unique'); var_dump($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.3.60.0110.00416.38
8.3.50.0090.00921.99
8.3.40.0070.00718.71
8.3.30.0090.00618.77
8.3.20.0070.00020.33
8.3.10.0040.00421.86
8.3.00.0080.00018.88
8.2.180.0110.00418.27
8.2.170.0120.00322.96
8.2.160.0070.01320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00920.51
8.2.120.0040.00426.35
8.2.110.0040.00420.29
8.2.100.0040.00817.90
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0060.00319.34
8.2.30.0000.00820.72
8.2.20.0000.00917.78
8.2.10.0040.00418.04
8.2.00.0040.00417.92
8.1.280.0120.00625.92
8.1.270.0040.00423.66
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0110.00019.16
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.64
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0000.00722.07
8.1.150.0070.00018.88
8.1.140.0060.00319.57
8.1.130.0030.00517.63
8.1.120.0000.00717.49
8.1.110.0040.00417.46
8.1.100.0000.00717.44
8.1.90.0050.00317.41
8.1.80.0040.00417.45
8.1.70.0000.00717.30
8.1.60.0040.00417.46
8.1.50.0000.00817.53
8.1.40.0040.00417.51
8.1.30.0000.00817.56
8.1.20.0050.00517.52
8.1.10.0040.00417.37
8.1.00.0000.00817.42
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.37
8.0.270.0040.00417.13
8.0.260.0000.00617.24
8.0.250.0030.00316.84
8.0.240.0050.00216.79
8.0.230.0050.00216.92
8.0.220.0070.00016.77
8.0.210.0000.00716.82
8.0.200.0060.00016.88
8.0.190.0030.00516.93
8.0.180.0040.00416.81
8.0.170.0070.00016.92
8.0.160.0000.00816.95
8.0.150.0050.00316.87
8.0.140.0000.00716.84
8.0.130.0060.00013.30
8.0.120.0050.00216.88
8.0.110.0000.00816.78
8.0.100.0050.00316.85
8.0.90.0070.00016.79
8.0.80.0070.01316.88
8.0.70.0040.00416.89
8.0.60.0040.00416.71
8.0.50.0000.00816.71
8.0.30.0130.00717.06
8.0.20.0080.01117.40
8.0.10.0070.00017.00
8.0.00.0060.01316.72
7.4.330.0050.00016.67
7.4.320.0000.00716.50
7.4.300.0060.00016.50
7.4.290.0080.00016.40
7.4.280.0000.00816.49
7.4.270.0040.00316.55
7.4.260.0000.00716.41
7.4.250.0040.00416.57
7.4.240.0050.00216.52
7.4.230.0030.00316.31
7.4.220.0080.01616.58
7.4.210.0030.01016.46
7.4.200.0000.00716.67
7.4.160.0070.01116.62
7.4.150.0100.01017.40
7.4.140.0140.00717.86
7.4.130.0070.01116.53
7.4.120.0090.00916.42
7.4.110.0100.00716.51
7.4.100.0120.00916.52
7.4.90.0130.01016.52
7.4.80.0000.01719.39
7.4.70.0070.01016.66
7.4.60.0100.00716.40
7.4.50.0030.01016.34
7.4.40.0130.00316.37
7.4.30.0070.01316.47
7.4.00.0030.01215.12
7.3.330.0000.00813.04
7.3.320.0000.00613.07
7.3.310.0070.00016.27
7.3.300.0070.00016.20
7.3.290.0080.00616.19
7.3.280.0080.00616.24
7.3.270.0120.00917.40
7.3.260.0140.00316.61
7.3.250.0080.01216.32
7.3.240.0070.01116.39
7.3.230.0100.01016.42
7.3.210.0080.01116.42
7.3.200.0070.01016.17
7.3.190.0170.00016.35
7.3.180.0100.01316.57
7.3.170.0030.01616.33
7.3.160.0070.01016.41
7.3.10.0130.00616.22
7.3.00.0040.00415.99
7.2.330.0060.01316.63
7.2.320.0030.01316.45
7.2.310.0170.00016.29
7.2.300.0130.00316.41
7.2.290.0110.00616.61
7.2.130.0030.01316.66
7.2.120.0000.01316.26
7.2.110.0060.00916.40
7.2.100.0000.01516.52
7.2.90.0070.01116.52
7.2.80.0150.00716.42
7.2.70.0150.00016.20
7.2.60.0110.00816.49
7.2.50.0130.01016.66
7.2.40.0160.00616.40
7.2.30.0030.01216.29
7.2.20.0100.00916.72
7.2.10.0080.01216.70
7.2.00.0050.00717.89
7.1.250.0060.00615.62
7.1.200.0110.00315.59
7.1.100.0090.01317.77
7.1.70.0060.00616.77
7.1.60.0000.02419.36
7.1.50.0030.01616.86
7.1.00.0070.07022.48
7.0.200.0000.00716.57
7.0.60.0070.07020.04
7.0.50.0030.05317.86
7.0.40.0030.04719.90
7.0.30.0170.04720.18
7.0.20.0230.06020.16
7.0.10.0200.07720.20
7.0.00.0170.07720.18
5.6.280.0070.06321.10
5.6.210.0100.08020.62
5.6.200.0130.07318.19
5.6.190.0100.07320.35
5.6.180.0800.05020.41
5.6.170.0300.07020.51
5.6.160.0070.08020.50
5.6.150.0030.06018.09
5.6.140.0030.05718.12
5.6.130.0030.08718.11
5.6.120.0030.05720.98
5.6.110.0100.08021.11
5.6.100.0130.07720.98
5.6.90.0100.08020.95
5.6.80.0100.08020.35
5.5.350.0170.07320.34
5.5.340.0100.07717.98
5.5.330.0070.04720.37
5.5.320.0130.07320.20
5.5.310.0270.08020.26
5.5.300.0070.07317.98
5.5.290.0070.08317.97
5.5.280.0030.04320.65
5.5.270.0000.08320.86
5.5.260.0070.04320.72
5.5.250.0070.08020.58
5.5.240.0230.07720.04

preferences:
58.48 ms | 401 KiB | 5 Q