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.4.120.0140.00620.48
8.4.110.0130.00820.79
8.4.100.0040.00417.77
8.4.90.0140.00720.66
8.4.80.0120.00820.77
8.4.70.0070.00318.84
8.4.60.0130.00920.37
8.4.50.0100.00622.28
8.4.40.0110.01117.63
8.4.30.0130.00720.73
8.4.20.0100.01017.57
8.4.10.0040.00422.00
8.3.250.0110.00516.46
8.3.240.0070.00216.50
8.3.230.0120.00716.50
8.3.220.0110.00820.91
8.3.210.0060.00218.47
8.3.200.0030.00616.46
8.3.190.0040.00617.32
8.3.180.0080.00918.74
8.3.170.0070.01117.30
8.3.160.0090.00918.46
8.3.150.0040.01120.86
8.3.140.0040.00420.96
8.3.130.0060.00618.36
8.3.120.0000.00820.77
8.3.110.0100.00016.63
8.3.100.0080.00424.06
8.3.90.0040.01126.77
8.3.80.0060.00318.55
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.290.0100.01017.19
8.2.280.0120.00718.25
8.2.270.0060.00319.05
8.2.260.0000.00816.74
8.2.250.0090.00018.40
8.2.240.0000.00819.21
8.2.230.0070.00320.94
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0040.00918.54
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.330.0120.00816.06
8.1.320.0120.00623.75
8.1.310.0070.01018.27
8.1.300.0170.00016.06
8.1.290.0040.00430.84
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:
27.06 ms | 403 KiB | 5 Q