3v4l.org

run code in 300+ PHP versions simultaneously
<?php struct Catalogue { string $name; } struct Category { string $name; } function persist_category(Category $category) { query('INSERT INTO category .....', ['name' => $category->name]); } persist_category(Catalogue { name: 'foo' });

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.1.40.0050.00317.38
8.1.30.0110.01117.46
8.1.20.0150.00717.44
8.1.10.0200.00417.42
8.1.00.0210.00717.22
8.0.170.0060.00316.87
8.0.160.0170.00616.83
8.0.150.0140.00916.57
8.0.140.0170.00016.81
8.0.130.0110.00616.71
8.0.120.0070.00716.73
8.0.110.0120.00316.77
8.0.100.0170.00716.84
8.0.90.0120.00916.76
8.0.80.0170.00516.84
8.0.70.0300.00316.79
8.0.60.0210.00316.70
8.0.50.0200.00316.87
8.0.30.0200.00416.86
8.0.20.0130.01116.88
8.0.10.0190.00616.96
7.4.280.0120.01216.21
7.4.270.0050.01416.34
7.4.260.0170.00316.41
7.4.250.0130.00316.25
7.4.240.0170.00016.30
7.4.230.0160.00616.19
7.4.220.0130.00416.41
7.4.210.0100.00716.36
7.4.200.0100.00516.22
7.4.190.0060.01316.45
7.4.180.0050.01016.37
7.4.160.0040.01416.45
7.4.150.0070.01316.29
7.4.140.0170.00616.28
7.4.130.0110.00016.27
7.4.120.0140.00616.31
7.4.110.0060.00416.22
7.4.100.0150.00416.38
7.4.90.0160.00316.21
7.4.80.0120.00916.23
7.4.70.0200.00016.31
7.4.60.0140.00516.31
7.4.50.0120.00816.19
7.4.40.0200.00316.12
7.4.30.0150.00616.25
7.4.20.0180.00616.22
7.4.10.0220.00016.13
7.4.00.0200.00316.16

preferences:
152.75 ms | 1288 KiB | 7 Q