3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domd=new DOMDocument(); $str = "DOMDocument"; var_dump($domd instanceof $str); var_dump($domd instanceof ("DOMDocument")); // ^ is legal. // V is illegal // var_dump($domd instanceof "DOMDocument"); $code = ' var_dump($domd instanceof ("DOMDocument")); '; eval($code); // the eval hack is for illustration, make it an error at run-time, rather than compile-time.

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.3.120.0060.01218.89
8.3.110.0030.01020.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0190.00316.50
8.3.60.0000.01418.31
8.3.50.0120.00316.54
8.3.40.0070.01323.61
8.3.30.0030.01018.90
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.240.0030.00617.01
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0120.00018.41
8.2.190.0110.01116.58
8.2.180.0100.01016.75
8.2.170.0120.00422.96
8.2.160.0030.01022.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00220.33
8.2.110.0110.00022.20
8.2.100.0280.00618.44
8.2.90.0230.00818.44
8.2.80.0300.00018.44
8.2.70.0280.00418.44
8.2.60.0270.00318.44
8.2.50.0240.00718.44
8.2.40.0160.01318.44
8.2.30.0240.00318.44
8.2.20.0280.00018.44
8.2.10.0230.00318.44
8.2.00.0210.00418.44
8.1.300.0130.00618.36
8.1.290.0030.00630.84
8.1.280.0180.00025.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00319.50
8.1.230.0240.00418.44
8.1.220.0210.00718.44
8.1.210.0190.00618.44
8.1.200.0210.00718.44
8.1.190.0170.01018.44
8.1.180.0200.00718.44
8.1.170.0230.00418.44
8.1.160.0200.00718.44
8.1.150.0230.00518.44
8.1.140.0200.00718.44
8.1.130.0200.00718.44
8.1.120.0190.00618.44
8.1.110.0220.00518.44
8.1.100.0250.00418.44
8.1.90.0200.00718.44
8.1.80.0190.00818.44
8.1.70.0270.00018.44
8.1.60.0240.00418.44
8.1.50.0240.00318.44
8.1.40.0200.00718.44
8.1.30.0240.00318.44
8.1.20.0210.00618.44
8.1.10.0230.00418.44
8.1.00.0170.00918.44
8.0.300.0190.00918.44
8.0.290.0220.00618.44
8.0.280.0180.01018.44
8.0.270.0250.00418.44
8.0.260.0240.00318.44
8.0.250.0260.00318.44
8.0.240.0240.00418.44
8.0.230.0210.00618.44
8.0.220.0260.00018.44
8.0.210.0170.00918.44
8.0.200.0220.00618.44
8.0.190.0200.00818.44
8.0.180.0190.00818.44
8.0.170.0270.00018.44
8.0.160.0250.00318.44
8.0.150.0230.00018.44
8.0.140.0220.00318.44
8.0.130.0150.00818.44
8.0.120.0240.00318.44
8.0.110.0180.00718.44
8.0.100.0280.00018.44
8.0.90.0200.00718.44
8.0.80.0270.00518.44
8.0.70.0200.00818.44
8.0.60.0210.00618.44
8.0.50.0220.00618.44
8.0.30.0290.00018.44
8.0.20.0260.00418.44
8.0.10.0170.00918.44

preferences:
30.93 ms | 403 KiB | 5 Q