3v4l.org

run code in 300+ PHP versions simultaneously
<?php class One {} class Two {} class Three {} function check(One|Two|Three ...$numbers): void { var_dump($numbers); } check(...[new One, new Two]); check(...[new One, new StdClass]);

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.4.120.0070.00520.69
8.4.110.0090.00522.53
8.4.100.0120.00718.06
8.4.90.0050.00418.77
8.4.80.0140.00718.07
8.4.70.0080.00918.15
8.4.60.0140.00718.72
8.4.50.0100.00717.93
8.4.40.0100.01017.58
8.4.30.0030.00620.50
8.4.20.0120.00817.89
8.4.10.0100.00619.58
8.3.250.0100.00818.75
8.3.240.0130.00616.81
8.3.230.0040.00416.56
8.3.220.0120.00316.92
8.3.210.0110.00816.58
8.3.200.0060.00316.60
8.3.190.0070.00317.14
8.3.180.0110.00016.43
8.3.170.0060.01218.83
8.3.160.0100.01016.51
8.3.150.0200.00020.45
8.3.140.0000.01017.23
8.3.130.0030.00518.63
8.3.120.0070.01316.61
8.3.110.0060.00316.50
8.3.100.0160.00320.04
8.3.90.0060.00316.73
8.3.80.0100.00018.43
8.3.70.0150.00018.05
8.3.60.0120.00318.56
8.3.50.0120.00316.69
8.3.40.0100.00720.38
8.3.30.0040.01121.91
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0000.00726.16
8.2.290.0110.00720.20
8.2.280.0080.00918.92
8.2.270.0130.00616.99
8.2.260.0040.01118.27
8.2.250.0110.00418.24
8.2.240.0000.01517.14
8.2.230.0080.00420.94
8.2.220.0130.00024.06
8.2.210.0060.00326.77
8.2.200.0050.00518.29
8.2.190.0100.00716.58
8.2.180.0120.00316.88
8.2.170.0090.00619.00
8.2.160.0090.00622.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.83
8.2.110.0060.00620.39
8.2.100.0170.00319.02
8.2.90.0050.01518.83
8.2.80.0070.00318.72
8.2.70.0000.00918.90
8.2.60.0150.00318.90
8.2.50.0050.00518.77
8.2.40.0070.01518.65
8.2.30.0030.00618.71
8.2.20.0060.00318.66
8.2.10.0100.00019.03
8.2.00.0060.00319.08
8.1.330.0120.00621.96
8.1.320.0050.00416.12
8.1.310.0160.00316.44
8.1.300.0080.00018.46
8.1.290.0000.01118.88
8.1.280.0100.01025.92
8.1.270.0020.00523.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00918.61
8.1.230.0100.00618.57
8.1.220.0030.00718.48
8.1.210.0060.00319.88
8.1.200.0060.00318.51
8.1.190.0050.00518.50
8.1.180.0030.00618.43
8.1.170.0030.00718.31
8.1.160.0050.00518.80
8.1.150.0090.00020.55
8.1.140.0030.00618.51
8.1.130.0040.00418.43
8.1.120.0060.00318.61
8.1.110.0070.00318.36
8.1.100.0060.00318.41
8.1.90.0060.00318.38
8.1.80.0100.00018.48
8.1.70.0090.00018.66
8.1.60.0030.00618.59
8.1.50.0060.00318.68
8.1.40.0060.00318.89
8.1.30.0030.00619.00
8.1.20.0040.00418.74
8.1.10.0060.00318.62
8.1.00.0030.00618.64
8.0.300.0100.00017.78
8.0.290.0030.00617.92
8.0.280.0040.00417.95
8.0.270.0030.00617.88
8.0.260.0060.00317.95
8.0.250.0030.00618.02
8.0.240.0030.00617.93
8.0.230.0000.00918.39
8.0.220.0090.00017.95
8.0.210.0090.00017.81
8.0.200.0070.00317.84
8.0.190.0060.00318.02
8.0.180.0090.00017.96
8.0.170.0070.00317.96
8.0.160.0000.01017.87
8.0.150.0030.00617.93
8.0.140.0000.01017.76
8.0.130.0030.00617.82
8.0.120.0060.00317.79
8.0.110.0040.00418.09
8.0.100.0030.00617.93
8.0.90.0100.00017.93
8.0.80.0030.00618.02
8.0.70.0090.00017.75
8.0.60.0060.00317.89
8.0.50.0060.00317.82
8.0.30.0060.00317.95
8.0.20.0060.00318.04
8.0.10.0080.00318.05

preferences:
27.9 ms | 403 KiB | 5 Q