3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public int $x = null; } $a = [new class A()]; foreach ($a as $b) { var_dump($a['x']->x ?? 0); }

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.30.0320.00517.14
8.5.20.0340.00616.67
8.5.10.0360.00616.67
8.5.00.0340.00816.67
8.4.180.0360.00819.29
8.4.170.0330.00819.66
8.4.160.0300.01219.42
8.4.150.0370.00719.58
8.4.140.0410.01117.68
8.4.130.0360.01117.48
8.4.120.0360.00917.87
8.4.110.0360.01017.76
8.4.100.0390.00717.76
8.4.90.0380.01017.81
8.4.80.0390.00917.98
8.4.70.0400.00717.75
8.4.60.0360.01017.72
8.4.50.0340.01217.92
8.4.40.0410.00917.64
8.4.30.0410.00717.48
8.4.20.0380.01117.55
8.4.10.0400.01017.54
8.3.300.0320.00918.36
8.3.290.0310.00918.35
8.3.280.0400.00718.38
8.3.270.0360.00616.78
8.3.260.0340.00916.72
8.3.250.0340.01016.71
8.3.240.0350.01116.73
8.3.230.0340.00916.75
8.3.220.0390.00816.80
8.3.210.0370.00816.69
8.3.200.0360.00816.73
8.3.190.0380.00716.76
8.3.180.0330.01116.67
8.3.170.0380.00916.73
8.3.160.0380.01016.67
8.3.150.0420.00616.76
8.3.140.0400.00816.67
8.3.130.0340.00916.75
8.3.120.0350.00716.68
8.3.110.0320.01216.67
8.3.100.0390.00716.67
8.3.90.0400.00816.73
8.3.80.0390.01016.70
8.3.70.0410.00816.71
8.3.60.0410.00916.70
8.3.50.0390.01116.69
8.3.40.0380.01017.88
8.3.30.0310.00617.94
8.3.20.0280.00917.83
8.3.10.0270.01017.81
8.3.00.0160.00717.94

preferences:
159.9 ms | 1313 KiB | 7 Q