3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function __construct(protected string $a, public int $b) { var_dump(debug_backtrace(limit: 1)); var_dump(func_get_args()); } } $s_ordered = new Something('yo', 1337); var_dump($s_ordered); print "---------------\n"; $s_named = new Something(b: 1337, a: 'yo'); var_dump($s_named);

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.0040.01516.75
8.3.60.0060.00918.30
8.3.50.0140.00718.35
8.3.40.0070.00721.98
8.3.30.0110.00419.20
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.190.0180.00416.60
8.2.180.0070.01116.38
8.2.170.0120.00619.08
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00022.07
8.2.110.0060.00320.39
8.2.100.0090.00617.91
8.2.90.0240.00717.36
8.2.80.0260.00417.50
8.2.70.0200.01017.38
8.2.60.0300.00017.23
8.2.50.0240.00617.25
8.2.40.0260.00017.38
8.2.30.0390.00017.09
8.2.20.0310.00017.60
8.2.10.0230.00717.25
8.2.00.0260.00317.38
8.1.280.0150.00325.92
8.1.270.0080.00024.66
8.1.260.0060.00326.35
8.1.250.0060.00928.09
8.1.240.0030.00720.92
8.1.230.0000.01222.73
8.1.220.0240.00617.25
8.1.210.0260.00417.13
8.1.200.0250.00417.25
8.1.190.0200.00717.13
8.1.180.0240.00517.00
8.1.170.0150.01217.00
8.1.160.0200.00717.25
8.1.150.0250.00317.00
8.1.140.0240.00317.38
8.1.130.0240.00317.13
8.1.120.0270.00017.38
8.1.110.0240.00216.88
8.1.100.0280.00017.38
8.1.90.0210.00717.25
8.1.80.0170.01017.25
8.1.70.0250.00316.88
8.1.60.0220.00717.25
8.1.50.0200.00717.59
8.1.40.0220.00417.38
8.1.30.0230.00317.35
8.1.20.0110.01517.38
8.1.10.0220.00517.25
8.1.00.0220.00617.13
8.0.300.0260.00416.80
8.0.290.0220.00716.80
8.0.280.0210.00616.80
8.0.270.0140.01416.80
8.0.260.0250.00416.80
8.0.250.0260.00416.80
8.0.240.0210.00716.80
8.0.230.0230.00716.80
8.0.220.0220.00916.80
8.0.210.0210.01116.80
8.0.200.0280.00316.80
8.0.190.0200.00916.86
8.0.180.0250.00316.80
8.0.170.0220.00716.80
8.0.160.0210.00616.80
8.0.150.0220.00716.80
8.0.140.0180.01116.80
8.0.130.0270.00316.80
8.0.120.0290.00016.80
8.0.110.0220.00416.80
8.0.100.0220.00716.80
8.0.90.0250.00416.80
8.0.80.0250.00316.80
8.0.70.0180.01116.80
8.0.60.0210.00616.80
8.0.50.0260.00016.80
8.0.30.0290.00016.80
8.0.20.0210.00616.80
8.0.10.0220.00516.80

preferences:
35.96 ms | 401 KiB | 5 Q