3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); class x { function __toString() : string { return "YES"; } } function foo(string $a) {} // piece of syntax of the day (POSOTD) echo $x = new x; print " A $x"; // Fata error: Argument #1 ($a) must be of type string, x given, foo($x); ?>

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.60.0110.00616.64
8.5.50.0030.00416.58
8.5.30.0130.00418.13
8.5.20.0090.00720.17
8.5.10.0130.00716.48
8.5.00.0140.00919.86
8.4.210.0120.01221.53
8.4.180.0120.01022.05
8.4.170.0150.00920.55
8.4.160.0110.01020.66
8.4.150.0080.00516.87
8.4.140.0120.00917.58
8.4.130.0060.00317.79
8.4.120.0080.01020.77
8.4.110.0110.00922.53
8.4.100.0130.00817.64
8.4.90.0070.00520.91
8.4.80.0070.00718.90
8.4.70.0060.00319.07
8.4.60.0130.00718.85
8.4.50.0110.00917.62
8.4.40.0000.01017.58
8.4.30.0440.00317.41
8.4.20.0430.00617.56
8.4.10.0370.01017.44
8.3.300.0110.01020.79
8.3.290.0050.00520.69
8.3.280.0140.00718.29
8.3.270.0100.01016.49
8.3.260.0130.00716.68
8.3.250.0100.00918.79
8.3.240.0180.00616.54
8.3.230.0120.00816.46
8.3.220.0020.00519.09
8.3.210.0040.00418.32
8.3.200.0080.00116.75
8.3.190.0080.00718.41
8.3.180.0110.00718.96
8.3.170.0070.01116.91
8.3.160.0440.00416.61
8.3.150.0380.00716.30
8.3.140.0290.01316.40
8.3.130.0290.01216.14
8.3.120.0340.00916.54
8.3.110.0360.00716.41
8.3.100.0330.01216.50
8.3.90.0310.00716.52
8.3.80.0380.00716.55
8.3.70.0390.00816.44
8.3.60.0390.00716.23
8.3.50.0410.00816.33
8.3.40.0410.00317.39
8.3.30.0360.00017.29
8.3.20.0280.01117.24
8.3.10.0210.01517.38
8.3.00.0100.01617.28
8.2.300.0130.00920.36
8.2.290.0090.00916.64
8.2.280.0100.00918.55
8.2.270.0260.01316.39
8.2.260.0290.01016.57
8.2.250.0350.00316.43
8.2.240.0330.00616.20
8.2.230.0350.00316.35
8.2.220.0340.00416.42
8.2.210.0330.00616.62
8.2.200.0250.01416.22
8.2.190.0210.01816.30
8.2.180.0260.01116.72
8.2.170.0340.00617.55
8.2.160.0370.00417.58
8.2.150.0310.01017.61
8.2.140.0460.00017.44
8.2.130.0290.01117.34
8.2.120.0400.00417.21
8.2.110.0280.01217.45
8.2.100.0190.01917.45
8.2.90.0260.01217.49
8.2.80.0250.01417.31
8.2.70.0250.00917.53
8.2.60.0280.00717.14
8.2.50.0360.00317.43
8.2.40.0410.01517.22
8.2.30.0300.00817.39
8.2.20.0380.00417.45
8.2.10.0250.00717.65
8.2.00.0240.00617.56
8.1.340.0110.00820.23
8.1.320.0110.00916.15

preferences:
50.03 ms | 849 KiB | 5 Q