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, ) { parent::__construct(); } } // 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.0120.00616.70
8.5.70.0110.00618.60
8.5.60.0080.01116.84
8.5.50.0070.01018.46
8.5.30.0080.00921.17
8.5.20.0070.00417.89
8.5.10.0100.00716.67
8.5.00.0140.00920.08
8.4.230.0140.00819.63
8.4.220.0070.00419.53
8.4.210.0160.00519.61
8.4.180.0120.00922.00
8.4.170.0090.01221.71
8.4.160.0130.00921.93
8.4.150.0080.00416.91
8.4.140.0130.00817.90
8.4.130.0050.00417.76
8.4.120.0120.00524.09
8.4.110.0090.00820.62
8.4.100.0100.00520.36
8.4.90.0140.00720.64
8.4.80.0170.00318.85
8.4.70.0080.00817.82
8.4.60.0110.00917.83
8.4.50.0100.01017.86
8.4.40.0170.00317.73
8.4.30.0110.00822.42
8.4.20.0100.01017.60
8.4.10.0080.00019.13
8.3.320.0130.00718.45
8.3.310.0090.00918.43
8.3.300.0070.00418.27
8.3.290.0110.00920.76
8.3.280.0130.01118.36
8.3.270.0160.00416.49
8.3.260.0100.00916.67
8.3.250.0090.00618.87
8.3.240.0110.00617.10
8.3.230.0130.00816.57
8.3.220.0110.00818.92
8.3.210.0090.00518.30
8.3.200.0080.01116.60
8.3.190.0090.01016.85
8.3.180.0120.00717.13
8.3.170.0110.00718.84
8.3.160.0040.01418.39
8.3.150.0090.00916.92
8.3.140.0140.00418.81
8.3.130.0050.00318.48
8.3.120.0030.00618.75
8.3.110.0100.00020.94
8.3.100.0090.00024.06
8.3.90.0050.00326.77
8.3.80.0000.01018.43
8.3.70.0160.00616.38
8.3.60.0090.00618.43
8.3.50.0070.00718.57
8.3.40.0110.00420.30
8.3.30.0140.00721.73
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.320.0080.00218.01
8.2.310.0090.01018.17
8.2.300.0130.00820.28
8.2.290.0040.00420.47
8.2.280.0060.00418.45
8.2.270.0160.00317.38
8.2.260.0040.01116.50
8.2.250.0000.00816.71
8.2.240.0060.00318.95
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0050.00226.77
8.2.200.0030.00616.50
8.2.190.0070.01116.58
8.2.180.0140.00416.50
8.2.170.0100.01018.95
8.2.160.0150.00022.96
8.2.150.0040.00425.66
8.2.140.0120.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.04
8.2.110.0070.01320.99
8.2.100.0260.00020.91
8.2.90.0220.00718.65
8.2.80.0140.00018.72
8.2.70.0140.00318.75
8.2.60.0120.00618.59
8.2.50.0130.01318.41
8.2.40.0230.00718.80
8.2.30.0180.01118.68
8.2.20.0190.00318.65
8.2.10.0130.00619.16
8.2.00.0220.01618.96
8.1.340.0100.00919.98
8.1.330.0130.00722.03
8.1.320.0130.00616.19
8.1.310.0040.00415.86
8.1.300.0000.00918.11
8.1.290.0120.00030.84
8.1.280.0100.01025.92
8.1.270.0050.00223.99
8.1.260.0030.00626.35
8.1.250.0140.00028.09
8.1.240.0270.00318.67
8.1.230.0090.01318.54
8.1.220.0090.00618.57
8.1.210.0100.00319.93
8.1.200.0110.00018.32
8.1.190.0030.00718.43
8.1.180.0070.00318.34
8.1.170.0080.00318.34
8.1.160.0060.00318.73
8.1.150.0050.00520.36
8.1.140.0060.00318.41
8.1.130.0030.00618.43
8.1.120.0100.00718.16
8.1.110.0170.00318.60
8.1.100.0100.00618.39
8.1.90.0040.00918.56
8.1.80.0110.00418.47
8.1.70.0040.00818.66
8.1.60.0140.00318.63
8.1.50.0130.00418.48
8.1.40.0030.01018.72
8.1.30.0130.00618.85
8.1.20.0080.00320.55
8.1.10.0110.00720.53
8.1.00.0040.00720.52
8.0.300.0070.00319.73
8.0.290.0120.00917.91
8.0.280.0060.01317.60
8.0.270.0070.00717.85
8.0.260.0070.00317.82
8.0.250.0150.00417.82
8.0.240.0120.00417.79
8.0.230.0110.00318.26
8.0.220.0130.00317.82
8.0.210.0210.00817.81
8.0.200.0250.00317.70
8.0.190.0110.01117.83
8.0.180.0100.00317.83
8.0.170.0110.00417.91
8.0.160.0250.00617.75
8.0.150.0170.00017.83
8.0.140.0100.00717.71
8.0.130.0200.01018.31
8.0.120.0200.00317.75
8.0.110.0240.00317.91
8.0.100.0270.00717.63
8.0.90.0310.00317.83
8.0.80.0250.00617.63
8.0.70.0170.01017.76
8.0.60.0180.00017.70
8.0.50.0150.00317.73
8.0.30.0190.00617.79
8.0.20.0290.00617.84
8.0.10.0070.01117.94

preferences:
94.88 ms | 1132 KiB | 5 Q