3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct( public ?string $prop = null, ) {} } class Bar extends Foo { public function __construct( public ?string $bar = null, ) {} } // Echoes nothing, but it works as expected. echo (new Bar())->prop;

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.80.0090.00816.86
8.5.70.0090.00418.70
8.5.60.0130.00616.96
8.5.50.0100.00716.95
8.5.30.0110.00721.16
8.5.20.0040.00518.05
8.5.10.0070.01016.72
8.5.00.0080.01420.13
8.4.230.0100.00819.71
8.4.220.0110.01119.55
8.4.210.0180.00219.52
8.4.180.0140.00919.45
8.4.170.0130.01120.38
8.4.160.0080.01320.38
8.4.150.0080.00416.93
8.4.140.0170.01017.85
8.4.130.0100.01018.88
8.4.120.0100.01123.93
8.4.110.0100.01120.50
8.4.100.0050.00418.94
8.4.90.0080.00620.48
8.4.80.0080.00118.93
8.4.70.0090.00818.06
8.4.60.0060.00320.60
8.4.50.0080.01018.13
8.4.40.0030.00617.68
8.4.30.0140.00720.38
8.4.20.0130.00719.81
8.4.10.0080.00019.62
8.3.320.0080.00118.54
8.3.310.0100.01018.58
8.3.300.0130.00719.13
8.3.290.0140.00620.82
8.3.280.0140.00618.51
8.3.270.0060.00216.84
8.3.260.0100.00616.65
8.3.250.0110.00818.94
8.3.240.0120.00717.24
8.3.230.0120.00816.70
8.3.220.0110.00718.82
8.3.210.0070.00518.50
8.3.200.0040.00516.80
8.3.190.0150.00416.73
8.3.180.0060.00517.14
8.3.170.0180.00019.16
8.3.160.0030.01518.42
8.3.150.0160.00316.84
8.3.140.0040.00416.90
8.3.130.0040.00416.71
8.3.120.0060.00320.75
8.3.110.0170.00320.94
8.3.100.0090.00016.83
8.3.90.0100.00726.77
8.3.80.0060.00318.43
8.3.70.0130.00716.63
8.3.60.0040.01117.00
8.3.50.0090.00616.72
8.3.40.0140.00320.29
8.3.30.0030.01021.78
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.320.0150.00618.23
8.2.310.0130.00618.13
8.2.300.0110.00920.18
8.2.290.0120.00620.33
8.2.280.0090.01118.38
8.2.270.0180.00016.82
8.2.260.0090.00616.88
8.2.250.0000.00818.77
8.2.240.0100.01017.37
8.2.230.0040.00722.58
8.2.220.0070.00424.06
8.2.210.0150.00426.77
8.2.200.0000.01116.50
8.2.190.0030.01216.58
8.2.180.0000.01816.75
8.2.170.0160.00018.94
8.2.160.0070.01022.96
8.2.150.0050.00325.66
8.2.140.0060.00924.66
8.2.130.0080.00026.16
8.2.120.0030.00620.52
8.2.110.0110.01121.22
8.2.100.0110.01020.06
8.2.90.0090.01318.91
8.2.80.0090.01118.80
8.2.70.0130.00618.62
8.2.60.0090.01218.74
8.2.50.0080.00818.56
8.2.40.0080.00818.82
8.2.30.0150.00818.74
8.2.20.0150.00518.64
8.2.10.0100.00318.91
8.2.00.0100.01018.93
8.1.340.0080.01221.83
8.1.330.0120.00721.91
8.1.320.0120.01016.13
8.1.310.0040.00416.49
8.1.300.0120.00318.56
8.1.290.0080.00030.84
8.1.280.0060.00925.92
8.1.270.0070.01123.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0140.00418.39
8.1.230.0130.01118.39
8.1.220.0080.00518.57
8.1.210.0130.01019.89
8.1.200.0120.00718.31
8.1.190.0140.00918.35
8.1.180.0120.00318.36
8.1.170.0130.00618.39
8.1.160.0070.00818.50
8.1.150.0110.00420.55
8.1.140.0150.00918.35
8.1.130.0170.00318.46
8.1.120.0110.00518.51
8.1.110.0070.00818.42
8.1.100.0060.00718.40
8.1.90.0150.00118.61
8.1.80.0150.00318.45
8.1.70.0090.00718.79
8.1.60.0100.00318.61
8.1.50.0100.00418.45
8.1.40.0100.00418.73
8.1.30.0090.00418.82
8.1.20.0120.00318.72
8.1.10.0080.00518.69
8.1.00.0090.00518.74
8.0.300.0110.00517.69
8.0.290.0100.00917.83
8.0.280.0080.00317.82
8.0.270.0110.00717.81
8.0.260.0090.00417.72
8.0.250.0100.00317.86
8.0.240.0150.00517.81
8.0.230.0110.00718.27
8.0.220.0110.00517.90
8.0.210.0070.00617.75
8.0.200.0120.00717.85
8.0.190.0090.00717.94
8.0.180.0090.00417.86
8.0.170.0050.00617.82
8.0.160.0150.00217.91
8.0.150.0080.00717.65
8.0.140.0120.00317.85
8.0.130.0130.00518.25
8.0.120.0080.00417.89
8.0.110.0100.00119.82
8.0.100.0120.00517.73
8.0.90.0130.00517.60
8.0.80.0080.01017.81
8.0.70.0060.00817.77
8.0.60.0070.00517.77
8.0.50.0100.00717.71
8.0.30.0070.00717.91
8.0.20.0160.00917.90
8.0.10.0130.00917.96

preferences:
90.58 ms | 1170 KiB | 5 Q