3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ChildDirectory extends Directory { public function __construct() {} } echo (new ChildDirectory())->path;

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.5.30.0100.00819.69
8.5.20.0110.00620.26
8.5.10.0150.00416.46
8.5.00.0120.00919.95
8.4.180.0120.00925.79
8.4.170.0140.00820.50
8.4.160.0120.00823.82
8.4.150.0030.00014.05
8.4.140.0120.01117.87
8.4.130.0130.00717.75
8.4.120.0120.00824.04
8.4.110.0080.00922.71
8.4.100.0100.01117.52
8.4.90.0130.00818.63
8.4.80.0140.00620.46
8.4.70.0100.00918.09
8.4.60.0090.01118.77
8.4.50.0150.00518.39
8.4.40.0000.00818.59
8.4.30.0120.00618.79
8.4.20.0110.00719.84
8.4.10.0030.00619.63
8.3.300.0040.00520.77
8.3.290.0100.01320.80
8.3.280.0120.00918.39
8.3.270.0080.01116.63
8.3.260.0090.01116.46
8.3.250.0120.00718.90
8.3.240.0100.00816.54
8.3.230.0150.00516.66
8.3.220.0140.00418.80
8.3.210.0070.01016.58
8.3.200.0040.00416.98
8.3.190.0160.00317.36
8.3.180.0110.00816.90
8.3.170.0110.00018.87
8.3.160.0070.01016.63
8.3.150.0140.00317.07
8.3.140.0050.00317.25
8.3.130.0000.00818.57
8.3.120.0090.00920.57
8.3.110.0030.00616.71
8.3.100.0000.00818.79
8.3.90.0080.00026.77
8.3.80.0060.00316.75
8.3.70.0070.01416.75
8.3.60.0030.01718.50
8.3.50.0100.01016.54
8.3.40.0150.00719.63
8.3.30.0120.00919.22
8.3.20.0070.01421.75
8.3.10.0100.01021.76
8.3.00.0110.01118.98
8.2.300.0090.01122.07
8.2.290.0120.00520.46
8.2.280.0170.00418.54
8.2.270.0110.00717.15
8.2.260.0070.01118.44
8.2.250.0040.00818.55
8.2.240.0060.00316.95
8.2.230.0070.01120.94
8.2.220.0000.01024.06
8.2.210.0040.00426.77
8.2.200.0070.00316.75
8.2.190.0140.00718.29
8.2.180.0040.01116.63
8.2.170.0160.00618.78
8.2.160.0170.00320.10
8.2.150.0230.00319.05
8.2.140.0140.00720.43
8.2.130.0100.01020.57
8.2.120.0070.01319.27
8.2.110.0140.00719.26
8.2.100.0140.00719.45
8.2.90.0090.01319.01
8.2.80.0160.00719.22
8.2.70.0130.00918.64
8.2.60.0140.00718.94
8.2.50.0090.00919.09
8.2.40.0140.00718.96
8.2.30.0100.01018.66
8.2.20.0100.01018.88
8.2.10.0130.00918.61
8.2.00.0120.00918.70
8.1.340.0150.00417.56
8.1.330.0080.01120.04
8.1.320.0100.01016.21
8.1.310.0140.00316.61
8.1.300.0040.00417.86
8.1.290.0040.00730.84
8.1.280.0110.00425.92
8.1.270.0200.00022.09
8.1.260.0100.01022.07
8.1.250.0130.00722.02
8.1.240.0110.01118.49
8.1.230.0240.00018.40
8.1.220.0100.01018.72
8.1.210.0160.00618.48
8.1.200.0070.01118.63
8.1.190.0040.01818.50
8.1.180.0110.00818.45
8.1.170.0110.00418.66
8.1.160.0150.00018.44
8.1.150.0040.01118.70
8.1.140.0100.00618.57
8.1.130.0070.01018.73
8.1.120.0040.01518.38
8.1.110.0120.00318.31
8.1.100.0060.00919.74
8.1.90.0110.00418.48
8.1.80.0150.00019.50
8.1.70.0180.00318.75
8.1.60.0160.00018.55
8.1.50.0140.01018.62
8.1.40.0060.00918.68
8.1.30.0110.00618.85
8.1.20.0130.00720.01
8.1.10.0170.00318.32
8.1.00.0150.00618.55

preferences:
82.34 ms | 475 KiB | 5 Q