3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const __dir__ = 'C'; } use A\__dir__; echo __dir__;

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.70.0160.00618.38
8.3.60.0070.00716.38
8.3.50.0120.00822.05
8.3.40.0090.00918.75
8.3.30.0060.00918.58
8.3.20.0040.00420.21
8.3.10.0150.00020.16
8.3.00.0040.00423.62
8.2.190.0130.00316.58
8.2.180.0170.00316.32
8.2.170.0100.01022.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.39
8.2.120.0070.00026.35
8.2.110.0060.00322.25
8.2.100.0100.00020.47
8.1.280.0140.00325.92
8.1.270.0070.00022.20
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0070.00318.67
8.1.230.0000.01018.50
7.1.30.1930.05336.34
7.1.20.1430.05036.48
7.1.10.2100.07720.23
7.1.00.2270.07320.48
7.0.170.1670.05019.96
7.0.160.1200.06019.96
7.0.150.2000.06720.05
7.0.140.1670.05720.15
7.0.130.2030.08019.98
7.0.120.1670.05719.93
7.0.110.1900.05719.99
7.0.100.1830.07020.01
7.0.90.1800.06719.97
7.0.80.2200.05319.86
7.0.70.1230.06319.96
7.0.60.2130.07719.74
7.0.50.1700.08320.02
7.0.40.1070.05019.96
7.0.30.0930.05720.04
7.0.20.1230.05719.98
7.0.10.1170.06320.03
7.0.00.1270.07019.96

preferences:
38.31 ms | 401 KiB | 5 Q