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.5.10.0100.00816.82
8.5.00.0130.01019.78
8.4.150.0030.00014.05
8.4.140.0120.00917.34
8.4.130.0100.00118.83
8.4.120.0040.00618.84
8.4.110.0070.00620.60
8.4.100.0170.00417.73
8.4.90.0130.00620.77
8.4.80.0120.00720.81
8.4.70.0090.00617.86
8.4.60.0100.00617.44
8.4.50.0070.00417.79
8.4.40.0170.00317.48
8.4.30.0120.00920.63
8.4.20.0160.00419.91
8.4.10.0040.00419.30
8.3.280.0140.00818.34
8.3.270.0130.00716.61
8.3.260.0090.00216.90
8.3.250.0100.00918.64
8.3.240.0050.00516.45
8.3.230.0110.00816.77
8.3.220.0090.00918.85
8.3.210.0090.00616.43
8.3.200.0100.01016.54
8.3.190.0040.00418.41
8.3.180.0110.01016.78
8.3.170.0080.00017.03
8.3.160.0090.00918.38
8.3.150.0110.00320.76
8.3.140.0080.00017.05
8.3.130.0000.00818.43
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.290.0130.00317.24
8.2.280.0040.00618.73
8.2.270.0070.01117.26
8.2.260.0180.00019.13
8.2.250.0040.00420.52
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.330.0100.00916.16
8.1.320.0110.00815.94
8.1.310.0000.00716.70
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:
69.38 ms | 403 KiB | 5 Q