3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(null|int|string $a) {} 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.5.80.0080.00617.05
8.5.70.0050.00217.10
8.5.60.0090.00616.95
8.5.50.0100.00716.70
8.5.30.0110.00617.95
8.5.20.0100.00720.27
8.5.10.0110.00718.51
8.5.00.0130.00820.02
8.4.230.0140.00719.76
8.4.220.0140.00619.51
8.4.210.0040.00519.68
8.4.180.0150.00722.05
8.4.170.0130.00823.93
8.4.160.0120.00923.81
8.4.150.0090.00416.85
8.4.140.0160.00617.84
8.4.130.0140.00717.94
8.4.120.0020.00620.51
8.4.110.0120.00822.37
8.4.100.0060.00317.69
8.4.90.0110.00918.79
8.4.80.0100.01017.93
8.4.70.0140.00619.73
8.4.60.0110.01017.82
8.4.50.0360.01217.48
8.4.40.0440.00717.53
8.4.30.0420.00717.32
8.4.20.0400.01017.71
8.4.10.0460.00717.75
8.3.310.0060.00318.41
8.3.300.0110.00820.90
8.3.290.0130.00720.76
8.3.280.0110.01018.31
8.3.270.0120.01016.66
8.3.260.0100.01016.54
8.3.250.0050.00418.92
8.3.240.0120.00716.34
8.3.230.0110.00816.41
8.3.220.0050.00318.98
8.3.210.0100.00616.79
8.3.200.0040.00416.59
8.3.190.0370.00816.60
8.3.180.0370.00816.65
8.3.170.0340.00816.38
8.3.160.0410.00516.45
8.3.150.0330.01016.26
8.3.140.0350.01316.70
8.3.130.0280.00716.77
8.3.120.0290.00716.54
8.3.110.0300.01016.23
8.3.100.0320.01416.65
8.3.90.0400.00716.27
8.3.80.0370.01016.46
8.3.70.0370.01116.32
8.3.60.0420.00616.21
8.3.50.0210.00916.54
8.3.40.0190.00317.54
8.3.30.0160.00417.44
8.3.20.0270.00917.32
8.3.10.0360.00917.31
8.3.00.0200.01117.33
8.2.310.0140.00618.22
8.2.300.0160.00818.20
8.2.290.0110.00820.29
8.2.280.0290.00816.52
8.2.270.0330.00716.37
8.2.260.0290.01016.57
8.2.250.0300.00916.50
8.2.240.0310.00916.56
8.2.230.0300.00916.60
8.2.220.0280.01216.56
8.2.210.0370.01016.60
8.2.200.0300.01216.80
8.2.190.0300.00816.50
8.2.180.0320.00716.71
8.2.170.0340.00417.81
8.2.160.0300.01117.64
8.2.150.0360.00617.30
8.2.140.0390.00517.32
8.2.130.0330.00917.63
8.2.120.0290.01317.50
8.2.110.0360.00717.47
8.2.100.0300.01117.44
8.2.90.0320.00917.74
8.2.80.0320.00617.40
8.2.70.0330.00817.46
8.2.60.0350.00617.48
8.2.50.0330.00817.41
8.2.40.0270.01217.53
8.2.30.0350.01017.38
8.2.20.0280.01017.40
8.2.10.0320.00717.30
8.2.00.0390.00617.20
8.1.340.0120.00719.86

preferences:
44.06 ms | 892 KiB | 5 Q