3v4l.org

run code in 300+ PHP versions simultaneously
<?php class One {} class Two {} function check(One|Two $object): void { var_dump($object); } check(new One); check(new Two);

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.0050.00424.14
8.4.110.0100.01022.45
8.4.100.0120.00918.52
8.4.90.0150.00618.68
8.4.80.0050.00318.62
8.4.70.0100.01118.05
8.4.60.0140.00618.72
8.4.50.0020.00718.50
8.4.40.0130.00817.29
8.4.30.0040.00420.45
8.4.20.0130.01017.98
8.4.10.0050.00319.00
8.3.250.0130.00418.63
8.3.240.0090.00917.25
8.3.230.0070.00416.44
8.3.220.0050.00318.79
8.3.210.0110.00916.53
8.3.200.0030.00516.52
8.3.190.0130.00616.80
8.3.180.0130.00716.78
8.3.170.0130.00618.72
8.3.160.0040.00416.98
8.3.150.0060.01217.15
8.3.140.0090.00916.54
8.3.130.0130.00718.18
8.3.120.0090.00020.58
8.3.110.0040.00820.94
8.3.100.0050.00524.06
8.3.90.0060.00326.77
8.3.80.0040.00418.31
8.3.70.0090.00618.18
8.3.60.0110.00416.63
8.3.50.0140.00716.47
8.3.40.0130.00920.37
8.3.30.0170.00021.91
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0000.00926.16
8.2.290.0130.00620.43
8.2.280.0080.01118.12
8.2.270.0070.01117.13
8.2.260.0080.00018.48
8.2.250.0040.00418.24
8.2.240.0110.00016.95
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0130.00626.77
8.2.200.0040.00416.38
8.2.190.0140.00416.58
8.2.180.0120.00916.75
8.2.170.0100.01018.80
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0110.00426.16
8.2.120.0080.00020.65
8.2.110.0090.01220.35
8.2.100.0070.00318.89
8.2.90.0160.00618.70
8.2.80.0000.01718.47
8.2.70.0070.00318.50
8.2.60.0040.01118.59
8.2.50.0070.00318.63
8.2.40.0060.00318.70
8.2.30.0070.00318.71
8.2.20.0060.00318.71
8.2.10.0080.00318.96
8.2.00.0030.00618.91
8.1.330.0120.00621.75
8.1.320.0110.00815.93
8.1.310.0040.01416.60
8.1.300.0080.00318.16
8.1.290.0060.00330.84
8.1.280.0210.00025.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0000.01018.29
8.1.230.0090.00018.50
8.1.220.0030.00718.41
8.1.210.0000.01119.83
8.1.200.0070.00318.30
8.1.190.0030.00618.18
8.1.180.0070.00318.34
8.1.170.0060.00318.49
8.1.160.0050.00518.52
8.1.150.0100.00020.55
8.1.140.0070.00318.34
8.1.130.0030.00718.43
8.1.120.0030.00718.38
8.1.110.0030.00718.47
8.1.100.0080.00318.32
8.1.90.0100.00018.41
8.1.80.0100.00318.44
8.1.70.0090.00018.68
8.1.60.0030.00618.50
8.1.50.0040.00718.54
8.1.40.0030.00618.65
8.1.30.0000.01018.81
8.1.20.0030.00718.51
8.1.10.0100.00018.51
8.1.00.0030.00718.61
8.0.300.0060.00317.82
8.0.290.0080.00417.45
8.0.280.0090.00017.71
8.0.270.0030.00618.01
8.0.260.0030.00617.73
8.0.250.0090.00017.96
8.0.240.0040.00417.89
8.0.230.0040.00418.15
8.0.220.0030.00717.82
8.0.210.0090.00017.69
8.0.200.0000.01017.89
8.0.190.0100.00017.74
8.0.180.0060.00317.93
8.0.170.0090.00017.84
8.0.160.0030.00617.82
8.0.150.0090.00017.66
8.0.140.0000.00917.68
8.0.130.0060.00317.80
8.0.120.0090.00017.68
8.0.110.0040.00417.97
8.0.100.0040.00417.68
8.0.90.0090.00017.83
8.0.80.0060.00317.71
8.0.70.0030.00617.71
8.0.60.0080.00017.76
8.0.50.0060.00317.81
8.0.30.0060.00317.81
8.0.20.0030.00617.87
8.0.10.0000.00918.06

preferences:
30.17 ms | 403 KiB | 5 Q